We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6131834 commit 3246e60Copy full SHA for 3246e60
Assets/Plugins/StreamChat/Tests/StatefulClient/PollsTests.cs
@@ -23,7 +23,7 @@ internal class PollsTests : BaseStateIntegrationTests
23
{
24
private readonly List<string> _tempPollIds = new List<string>();
25
26
- [TearDown]
+ [OneTimeTearDown]
27
public async void TearDown()
28
29
await DeleteTempPollsAsync();
@@ -36,8 +36,10 @@ private async Task DeleteTempPollsAsync()
36
return;
37
}
38
39
- foreach (var pollId in _tempPollIds)
+ // Iterate in reverse to avoid collection modification issues
40
+ for (int i = _tempPollIds.Count - 1; i >= 0; i--)
41
42
+ var pollId = _tempPollIds[i];
43
try
44
45
await Client.Polls.DeletePollAsync(pollId);
0 commit comments