From 0a272cdb9a6db1eaed3a0ab9e7d39d7c4c56ad72 Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Tue, 4 Jun 2024 08:03:06 -0700 Subject: [PATCH] Add test to demonstrate that #825 is fixed Fixes #825 in `main` --- projects/Test/Integration/TestConnectionShutdown.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/Test/Integration/TestConnectionShutdown.cs b/projects/Test/Integration/TestConnectionShutdown.cs index 2aaa078c74..568a7ff8e0 100644 --- a/projects/Test/Integration/TestConnectionShutdown.cs +++ b/projects/Test/Integration/TestConnectionShutdown.cs @@ -161,5 +161,12 @@ public async Task TestConsumerDispatcherShutdown() await WaitAsync(tcs, TimeSpan.FromSeconds(3), "channel shutdown"); Assert.True(m.ConsumerDispatcher.IsShutdown, "dispatcher should be shut down after Close"); } + + [Fact] + public async Task TestDisposeAfterAbort_GH825() + { + await _channel.AbortAsync(); + _channel.Dispose(); + } } }