@@ -80,7 +80,7 @@ func TestLocks(t *testing.T) {
8080
8181func TestTryToLockTwoResourcesWithTheSameType (t * testing.T ) {
8282 client , instance , _ , teardown , err := setupInstanceWithoutDisks (t ,
83- "fixtures/TestLockTryToLockResourceTwice " , false )
83+ "fixtures/TestTryToLockTwoResourcesWithTheSameType " , false )
8484 require .NoError (t , err )
8585 t .Cleanup (teardown )
8686 createOpts := linodego.LockCreateOptions {
@@ -94,12 +94,12 @@ func TestTryToLockTwoResourcesWithTheSameType(t *testing.T) {
9494 defer client .DeleteLock (context .Background (), createdLock .ID )
9595
9696 createOpts .LockType = linodego .LockTypeCannotDeleteWithSubresources
97- _ , errAlreadyExist := client .CreateLock (context .Background (), createOpts )
98- require .Error (t , errAlreadyExist )
97+ _ , errConflictingLock := client .CreateLock (context .Background (), createOpts )
98+ require .Error (t , errConflictingLock )
9999}
100100
101101func TestTryToCreateWithInvalidData (t * testing.T ) {
102- client , teardown := createTestClient (t , "fixtures/TestLockTryToCreateWithNotExistingEntityID " )
102+ client , teardown := createTestClient (t , "fixtures/TestTryToCreateWithInvalidData " )
103103 defer teardown ()
104104
105105 createOpts := linodego.LockCreateOptions {
0 commit comments