From c629e892892684b303aed4a8842eef8fcf660c14 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Mon, 23 May 2022 10:00:06 -0400 Subject: [PATCH] Fix tests broken in #13173 (#13178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I changed the error type returned in a situation but didn’t update the tests to expect that error. --- agent/consul/stream/event_publisher_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/consul/stream/event_publisher_test.go b/agent/consul/stream/event_publisher_test.go index 0d5340942..28256fa11 100644 --- a/agent/consul/stream/event_publisher_test.go +++ b/agent/consul/stream/event_publisher_test.go @@ -173,10 +173,10 @@ func TestEventPublisher_ShutdownClosesSubscriptions(t *testing.T) { cancel() // Shutdown err = consumeSub(context.Background(), sub1) - require.Equal(t, err, ErrSubForceClosed) + require.Equal(t, err, ErrShuttingDown) _, err = sub2.Next(context.Background()) - require.Equal(t, err, ErrSubForceClosed) + require.Equal(t, err, ErrShuttingDown) } func consumeSub(ctx context.Context, sub *Subscription) error {