File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments