Skip to content

Commit

Permalink
backport of commit d2087fa
Browse files Browse the repository at this point in the history
  • Loading branch information
alisdair committed Jun 17, 2022
1 parent e039a9d commit 516e4e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/states/remote/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func TestRemoteLocks(t *testing.T, a, b Client) {
lockerA.Unlock(lockIDA)
t.Fatal("client B obtained lock while held by client A")
}
if _, ok := err.(*statemgr.LockError); !ok {
t.Errorf("expected a LockError, but was %t: %s", err, err)
}

if err := lockerA.Unlock(lockIDA); err != nil {
t.Fatal("error unlocking client A", err)
Expand Down

0 comments on commit 516e4e9

Please sign in to comment.