Skip to content

Commit

Permalink
fix integration test output (chainguard-dev#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg authored May 7, 2024
1 parent e80ab43 commit a43edd2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions samples/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func TestJSON(t *testing.T) {
t.Fatalf("scan failed: %v", err)
}

if diff := cmp.Diff(*got, want); diff != "" {
t.Errorf("unexpected diff: %s", diff)
if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("JSON output mismatch: (-want +got):\n%s", diff)
}
})
return nil
Expand Down Expand Up @@ -143,8 +143,8 @@ func TestSimple(t *testing.T) {
}

got := out.String()
if diff := cmp.Diff(got, want); diff != "" {
t.Errorf("unexpected diff: %s\ngot: %s", diff, got)
if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("Simple output mismatch: (-want +got):\n%s", diff)
}
})
return nil
Expand Down Expand Up @@ -213,8 +213,8 @@ func TestDiff(t *testing.T) {
}

got := out.String()
if diff := cmp.Diff(got, want); diff != "" {
t.Errorf("unexpected diff: %s", diff)
if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("simple diff output mismatch: (-want +got):\n%s", diff)
}
})
}
Expand Down Expand Up @@ -276,8 +276,8 @@ func TestMarkdown(t *testing.T) {
}

got := out.String()
if diff := cmp.Diff(got, want); diff != "" {
t.Errorf("unexpected diff: %s\ngot: %s", diff, got)
if diff := cmp.Diff(want, got); diff != "" {
t.Errorf("markdown output mismatch: (-want +got):\n%s", diff)
}
})
return nil
Expand Down

0 comments on commit a43edd2

Please sign in to comment.