Skip to content

Commit 2c5bd7f

Browse files
committed
Log matches of log paths to understand TestRunWithJsonFileLogDriver flakiness
TestRunWithJsonFileLogDriver failed with error ``` run_test.go:237: the maximum number of old log files to retain exceeded 2 files ``` Since we can't inspect the container directly, knowing the contents of the container will help us understand flakiness. Signed-off-by: Manu Gupta <manugupt1@gmail.com>
1 parent a8ab5cd commit 2c5bd7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/nerdctl/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func TestRunWithJsonFileLogDriver(t *testing.T) {
234234
matches, err := filepath.Glob(filepath.Join(logJSONPath, inspectedContainer.ID+"*"))
235235
assert.NilError(t, err)
236236
if len(matches) != 2 {
237-
t.Fatal("the maximum number of old log files to retain exceeded 2 files")
237+
t.Fatalf("the maximum number of old log files to retain exceeded 2 files, got: %s", matches)
238238
}
239239
for _, file := range matches {
240240
fInfo, err := os.Stat(file)

0 commit comments

Comments
 (0)