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 8a968299dd
commit c629e89289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {