I changed the error type returned in a situation but didn’t update the tests to expect that error.
This commit is contained in:
parent
8a968299dd
commit
c629e89289
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue