Fix failing test

This commit is contained in:
Dane Everitt 2022-01-31 19:33:32 -05:00
parent 7051feee01
commit 5c3e2c2c94

View File

@ -81,7 +81,7 @@ func TestPower(t *testing.T) {
err := l.TryAcquire(ctx) err := l.TryAcquire(ctx)
g.Assert(err).IsNotNil() g.Assert(err).IsNotNil()
g.Assert(errors.Is(err, context.DeadlineExceeded)).IsTrue() g.Assert(errors.Is(err, ErrLockerLocked)).IsTrue()
g.Assert(cap(l.ch)).Equal(1) g.Assert(cap(l.ch)).Equal(1)
g.Assert(len(l.ch)).Equal(1) g.Assert(len(l.ch)).Equal(1)
g.Assert(l.IsLocked()).IsTrue() g.Assert(l.IsLocked()).IsTrue()