mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Added mutex locks when accessing file object : lint check fix
This commit is contained in:
parent
9ed4c58a1f
commit
0e76e2c2bb
@ -244,7 +244,7 @@ func TestReadRotatedLog(t *testing.T) {
|
|||||||
mu.Lock()
|
mu.Lock()
|
||||||
path := file.Name()
|
path := file.Name()
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
ReadLogs(ctx, path, containerID, opts, fakeRuntimeService, stdoutBuf, stderrBuf)
|
_ = ReadLogs(ctx, path, containerID, opts, fakeRuntimeService, stdoutBuf, stderrBuf)
|
||||||
}(ctx)
|
}(ctx)
|
||||||
|
|
||||||
// log in stdout
|
// log in stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user