Skip to content

Commit 4d2d38a

Browse files
committed
test(auth): rename test case and cleanup unused params
1 parent 771be63 commit 4d2d38a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/auth/device_flow_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ func TestLogAuthResponse_HandlesNilSDKResponse(t *testing.T) {
162162
}
163163
}
164164

165-
// TestDefaultLogWriter_ReleasesLockOnPanic ensures log locks are released even if a panic occurs.
166-
func TestDefaultLogWriter_ReleasesLockOnPanic(t *testing.T) {
165+
// TestDefaultLogWriter_PanicsBeforeLock ensures log code behaves correctly when panic occurs before the lock is acquired.
166+
func TestDefaultLogWriter_PanicsBeforeLock(t *testing.T) {
167167
t.Setenv("LARKSUITE_CLI_CONFIG_DIR", t.TempDir())
168168

169169
prevNow := authResponseLogNow
170170
prevCleanup := authResponseLogCleanup
171-
authResponseLogCleanup = func(dir string, now time.Time) {}
171+
authResponseLogCleanup = func(_ string, _ time.Time) {}
172172
t.Cleanup(func() {
173173
authResponseLogNow = prevNow
174174
authResponseLogCleanup = prevCleanup

0 commit comments

Comments
 (0)