From a0d7038c8c30671dfd618f47322814ab492c11a1 Mon Sep 17 00:00:00 2001 From: William Wilson Date: Wed, 15 Sep 2021 13:10:08 -0500 Subject: [PATCH] Fix TestCSVInputHasAName with Go 1.17 --- inputs/csv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputs/csv_test.go b/inputs/csv_test.go index b84ae5f..e3cfe6f 100644 --- a/inputs/csv_test.go +++ b/inputs/csv_test.go @@ -134,7 +134,7 @@ func TestCSVInputHasAName(t *testing.T) { } input, _ := NewCSVInput(opts) - expected := fp.Name() + expected := strings.ReplaceAll(fp.Name(), "./", "") if !reflect.DeepEqual(input.Name(), expected) { t.Errorf("Name() = %v, want %v", input.Name(), expected)