Skip to content

Commit

Permalink
Merge pull request #1221 from manugupt1/add-debug-logs
Browse files Browse the repository at this point in the history
Log matches of log paths to understand TestRunWithJsonFileLogDriver flakiness
  • Loading branch information
AkihiroSuda committed Jul 13, 2022
2 parents a8ab5cd + 2c5bd7f commit cd73b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func TestRunWithJsonFileLogDriver(t *testing.T) {
matches, err := filepath.Glob(filepath.Join(logJSONPath, inspectedContainer.ID+"*"))
assert.NilError(t, err)
if len(matches) != 2 {
t.Fatal("the maximum number of old log files to retain exceeded 2 files")
t.Fatalf("the maximum number of old log files to retain exceeded 2 files, got: %s", matches)
}
for _, file := range matches {
fInfo, err := os.Stat(file)
Expand Down

0 comments on commit cd73b09

Please sign in to comment.