mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
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
3c1e17cbd5
commit
d0fdf22f83
@ -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…
x
Reference in New Issue
Block a user