diff --git a/pkg/jsonconfig/jsonconfig_test.go b/pkg/jsonconfig/jsonconfig_test.go index 89e5c9e2c..b50658424 100644 --- a/pkg/jsonconfig/jsonconfig_test.go +++ b/pkg/jsonconfig/jsonconfig_test.go @@ -42,7 +42,7 @@ func TestIncludeLoop(t *testing.T) { if err == nil { t.Fatal("expected an error about import cycles.") } - if !strings.Contains(err.String(), "include cycle detected"){ + if !strings.Contains(err.Error(), "include cycle detected"){ t.Fatal("expected an error about import cycles; got: %v", err) } }