Skip to content

Commit 3ccf4f7

Browse files
authored
test: Wait start task for SuccessfulRequestCausesDataToBeStoredAndDataSourceInitialized. (#200)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Waits for the `Start()` task to complete (with timeout) before asserting `Initialized` in `SuccessfulRequestCausesDataToBeStoredAndDataSourceInitialized`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 5cbc0a0. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 4d8e9a6 commit 3ccf4f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/sdk/server/test/Internal/DataSources/PollingDataSourceTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public void SuccessfulRequestCausesDataToBeStoredAndDataSourceInitialized()
6666

6767
var receivedData = _updateSink.Inits.ExpectValue();
6868
AssertHelpers.DataSetsEqual(AllData, receivedData);
69-
69+
70+
initTask.Wait(TimeSpan.FromSeconds(1));
7071
Assert.True(dataSource.Initialized);
7172

7273
Assert.True(initTask.IsCompleted);

0 commit comments

Comments
 (0)