Skip to content

Commit

Permalink
fix quoting issues in test output when building with Go 1.15 (#2836)
Browse files Browse the repository at this point in the history
  • Loading branch information
andir authored Oct 29, 2020
1 parent a8e73e1 commit c79878d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/logentry/stages/drop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func Test_validateDropConfig(t *testing.T) {
config: &DropConfig{
OlderThan: &dropInvalidDur,
},
wantErr: fmt.Errorf(ErrDropStageInvalidDuration, dropInvalidDur, "time: unknown unit y in duration 10y"),
wantErr: fmt.Errorf(ErrDropStageInvalidDuration, dropInvalidDur, "time: unknown unit \"y\" in duration \"10y\""),
},
{
name: "Invalid Config",
Expand Down
2 changes: 1 addition & 1 deletion pkg/logentry/stages/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func Test(t *testing.T) {
IdleDuration: &metricTestInvalidIdle,
},
},
errors.Errorf(ErrInvalidIdleDur, "time: unknown unit f in duration 10f"),
errors.Errorf(ErrInvalidIdleDur, "time: unknown unit \"f\" in duration \"10f\""),
},
"valid": {
MetricsConfig{
Expand Down

0 comments on commit c79878d

Please sign in to comment.