Skip to content

Commit

Permalink
Merge d2087fa into backport/alisdair/backend-remote-locks-helper-lock…
Browse files Browse the repository at this point in the history
…error-test/miserably-growing-stag
  • Loading branch information
teamterraform committed Jun 17, 2022
2 parents 52f2970 + d2087fa commit f6c2e72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/states/remote/testing.go
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 f6c2e72

Please sign in to comment.