Fix tests broken in #13173 (#13178)

I changed the error type returned in a situation but didn’t update the tests to expect that error.
This commit is contained in:
Matt Keeler 2022-05-23 10:00:06 -04:00 committed by GitHub
parent 3c1e17cbd5
commit d0fdf22f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,10 +173,10 @@ func TestEventPublisher_ShutdownClosesSubscriptions(t *testing.T) {
cancel() // Shutdown cancel() // Shutdown
err = consumeSub(context.Background(), sub1) err = consumeSub(context.Background(), sub1)
require.Equal(t, err, ErrSubForceClosed) require.Equal(t, err, ErrShuttingDown)
_, err = sub2.Next(context.Background()) _, err = sub2.Next(context.Background())
require.Equal(t, err, ErrSubForceClosed) require.Equal(t, err, ErrShuttingDown)
} }
func consumeSub(ctx context.Context, sub *Subscription) error { func consumeSub(ctx context.Context, sub *Subscription) error {