From 98863868636214718cf61b3fb2023a3205b0f74f Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Date: Thu, 18 Aug 2022 13:25:43 +0200 Subject: [PATCH] Use path instead of filepath for test --- code/go/pkg/validator/validator_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/go/pkg/validator/validator_test.go b/code/go/pkg/validator/validator_test.go index 963029bab..0d7af20e1 100644 --- a/code/go/pkg/validator/validator_test.go +++ b/code/go/pkg/validator/validator_test.go @@ -325,7 +325,7 @@ func TestValidateWarnings(t *testing.T) { t.Run(pkgName, func(t *testing.T) { warnPrefix := fmt.Sprintf("Warning: ") - pkgRootPath := filepath.Join("..", "..", "..", "..", "test", "packages", pkgName) + pkgRootPath := path.Join("..", "..", "..", "..", "test", "packages", pkgName) errs := ValidateFromPath(pkgRootPath) if len(expectedWarnContains) == 0 { require.NoError(t, errs)