Skip to content

Commit

Permalink
Use quote for test failure output
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Apr 29, 2020
1 parent 84353d0 commit e54da61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/logs/requestor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ func Test_parseEntry(t *testing.T) {
}

if entry.Name != expectedEntry.Name {
t.Fatalf("expected Name %s, got %s", expectedEntry.Name, entry.Name)
t.Fatalf("want Name: %q, got %q", expectedEntry.Name, entry.Name)
}

if entry.Namespace != expectedEntry.Namespace {
t.Fatalf("expected Namespace %s, got %s", expectedEntry.Namespace, entry.Namespace)
t.Fatalf("want Namespace: %q, got %q", expectedEntry.Namespace, entry.Namespace)
}

if entry.Timestamp != expectedEntry.Timestamp {
t.Fatalf("expected Timestamp %s, got %s", expectedEntry.Timestamp, entry.Timestamp)
t.Fatalf("want Timestamp: %q, got %q", expectedEntry.Timestamp, entry.Timestamp)
}

if entry.Text != expectedEntry.Text {
t.Fatalf("expected Text %s, got %s", expectedEntry.Text, entry.Text)
t.Fatalf("want Text: %q, got %q", expectedEntry.Text, entry.Text)
}
}

Expand Down

0 comments on commit e54da61

Please sign in to comment.