Skip to content

Commit cd73b09

Browse files
authored
Merge pull request #1221 from manugupt1/add-debug-logs
Log matches of log paths to understand TestRunWithJsonFileLogDriver flakiness
2 parents a8ab5cd + 2c5bd7f commit cd73b09

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)