From 1316c0f0c5cda7c272c4873ea910211476fc1db8 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Thu, 29 Oct 2020 00:53:14 +0100 Subject: [PATCH] fix quoting issues in test output when building with Go 1.15 --- pkg/logentry/stages/drop_test.go | 2 +- pkg/logentry/stages/metrics_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/logentry/stages/drop_test.go b/pkg/logentry/stages/drop_test.go index 70401e7375641..3d8cabf65f6b0 100644 --- a/pkg/logentry/stages/drop_test.go +++ b/pkg/logentry/stages/drop_test.go @@ -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", diff --git a/pkg/logentry/stages/metrics_test.go b/pkg/logentry/stages/metrics_test.go index 33319e37272c1..bf98b917616f8 100644 --- a/pkg/logentry/stages/metrics_test.go +++ b/pkg/logentry/stages/metrics_test.go @@ -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{