Skip to content

Commit

Permalink
Pass thread context by Task.Yield
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Sep 18, 2023
1 parent 24c9424 commit 1d4821b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public async Task SubscribeTipChangedEvent()
// var data = (Dictionary<string, object>)((ExecutionNode) result.Data!).ToValue()!;

Assert.Equal(index, BlockChain.Tip.Index);
await Task.Yield();
var result = await ExecuteSubscriptionQueryAsync("subscription { tipChanged { index hash } }");
Assert.IsType<SubscriptionExecutionResult>(result);
var subscribeResult = (SubscriptionExecutionResult)result;
Expand Down

0 comments on commit 1d4821b

Please sign in to comment.