Skip to content

Commit 2a6b8eb

Browse files
committed
Apply copilot code review seuggestion
1 parent 1ccbfa0 commit 2a6b8eb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/integration/fixtures/TestLockTryToCreateWithNotExistingEntityID.yaml renamed to test/integration/fixtures/TestTryToCreateWithInvalidData.yaml

File renamed without changes.

test/integration/fixtures/TestLockTryToLockResourceTwice.yaml renamed to test/integration/fixtures/TestTryToLockTwoResourcesWithTheSameType.yaml

File renamed without changes.

test/integration/locks_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestLocks(t *testing.T) {
8080

8181
func 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

101101
func 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

Comments
 (0)