Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Dec 12, 2024
1 parent 020f146 commit ba32f47
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions internal/locker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func TestAccLock(t *testing.T) {
assert.True(t, lockers[indexOfAnInactiveLocker].Active)
}

func setupLockerTest(ctx context.Context, t *testing.T) (*lockpkg.Locker, filer.Filer) {
func setupLockerTest(t *testing.T) (context.Context, *lockpkg.Locker, filer.Filer) {
ctx, wt := acc.WorkspaceTest(t)
w := wt.W

Expand All @@ -178,12 +178,11 @@ func setupLockerTest(ctx context.Context, t *testing.T) (*lockpkg.Locker, filer.
locker, err := lockpkg.CreateLocker("[email protected]", tmpDir, w)
require.NoError(t, err)

return locker, f
return ctx, locker, f
}

func TestAccLockUnlockWithoutAllowsLockFileNotExist(t *testing.T) {
ctx := context.Background()
locker, f := setupLockerTest(ctx, t)
ctx, locker, f := setupLockerTest(t)
var err error

// Acquire lock on tmp directory
Expand All @@ -204,8 +203,7 @@ func TestAccLockUnlockWithoutAllowsLockFileNotExist(t *testing.T) {
}

func TestAccLockUnlockWithAllowsLockFileNotExist(t *testing.T) {
ctx := context.Background()
locker, f := setupLockerTest(ctx, t)
ctx, locker, f := setupLockerTest(t)
var err error

// Acquire lock on tmp directory
Expand Down

0 comments on commit ba32f47

Please sign in to comment.