Skip to content

Commit 90748b1

Browse files
authored
Delete faulty assert (#313)
We need better coverage of Subscribe/Unsubscribe separately, but for now this assert is bad.
1 parent c1e294c commit 90748b1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/ModelContextProtocol.Tests/ClientIntegrationTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,6 @@ public async Task UnsubscribeResource_Stdio()
307307

308308
// unsubscribe
309309
await client.UnsubscribeFromResourceAsync("test://static/resource/1", TestContext.Current.CancellationToken);
310-
receivedNotification = new();
311-
312-
// wait a bit to validate we don't receive another. this is best effort only;
313-
// false negatives are possible.
314-
await Assert.ThrowsAsync<TimeoutException>(() => receivedNotification.Task.WaitAsync(TimeSpan.FromSeconds(1), TestContext.Current.CancellationToken));
315310
}
316311

317312
[Theory]

0 commit comments

Comments
 (0)