From 1d4821bcfe2d94b7ea742b156312d33dadd8c140 Mon Sep 17 00:00:00 2001 From: moreal Date: Mon, 18 Sep 2023 09:02:41 +0900 Subject: [PATCH] Pass thread context by `Task.Yield` --- .../GraphTypes/StandaloneSubscriptionTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NineChronicles.Headless.Tests/GraphTypes/StandaloneSubscriptionTest.cs b/NineChronicles.Headless.Tests/GraphTypes/StandaloneSubscriptionTest.cs index b45aa9f5a..32f365f0b 100644 --- a/NineChronicles.Headless.Tests/GraphTypes/StandaloneSubscriptionTest.cs +++ b/NineChronicles.Headless.Tests/GraphTypes/StandaloneSubscriptionTest.cs @@ -56,6 +56,7 @@ public async Task SubscribeTipChangedEvent() // var data = (Dictionary)((ExecutionNode) result.Data!).ToValue()!; Assert.Equal(index, BlockChain.Tip.Index); + await Task.Yield(); var result = await ExecuteSubscriptionQueryAsync("subscription { tipChanged { index hash } }"); Assert.IsType(result); var subscribeResult = (SubscriptionExecutionResult)result;