Skip to content

Commit e169449

Browse files
committed
Add waiting for the WS event
1 parent 67d1f70 commit e169449

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Assets/Plugins/StreamChat/Tests/StatefulClient/ChannelsTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ await WaitWhileFalseAsync(
330330

331331
await channel.UpdatePartialAsync(unsetFields: new string[] { "owned_dogs", "breakfast" });
332332

333-
//StreamTodo: this can potentially be non deterministic because we rely on WS event being received before call ends
333+
await WaitWhileTrueAsync(
334+
() => new[] { "owned_dogs", "breakfast" }.All(channel.CustomData.ContainsKey));
334335

335336
Assert.IsFalse(channel.CustomData.ContainsKey("owned_dogs"));
336337
Assert.IsFalse(channel.CustomData.ContainsKey("breakfast"));

0 commit comments

Comments
 (0)