Added mutex locks when accessing file object : lint check fix

This commit is contained in:
Abhishek Kr Srivastav 2023-10-27 19:12:01 +05:30
parent 9ed4c58a1f
commit 0e76e2c2bb

View File

@ -244,7 +244,7 @@ func TestReadRotatedLog(t *testing.T) {
mu.Lock()
path := file.Name()
mu.Unlock()
ReadLogs(ctx, path, containerID, opts, fakeRuntimeService, stdoutBuf, stderrBuf)
_ = ReadLogs(ctx, path, containerID, opts, fakeRuntimeService, stdoutBuf, stderrBuf)
}(ctx)
// log in stdout