Skip to content

Commit

Permalink
Fix GrainCallFilter_Incoming_Stream_Test flakiness by increasing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed May 13, 2024
1 parent 0ec6d0a commit 00d694f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Tester/GrainCallFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ public async Task GrainCallFilter_Incoming_Stream_Test()
// The intercepted grain should double the value passed to the stream.
const int testValue = 43;
await stream.OnNextAsync(testValue);
var cts = new CancellationTokenSource(1000);
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30));
int actual = 0;
while (!cts.IsCancellationRequested)
{
actual = await grain.GetLastStreamValue();
if (actual != 0) break;
}

Assert.Equal(testValue * 2, actual);
}

Expand Down

0 comments on commit 00d694f

Please sign in to comment.