From b3ea4ef426b1127a8079058a31b3940a95c70629 Mon Sep 17 00:00:00 2001 From: zongz Date: Mon, 25 Sep 2023 15:54:08 +0800 Subject: [PATCH] fix: fix windows test cases --- pkg/client/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index da39b986..29c50c18 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -532,7 +532,7 @@ func TestResolveMetadataInJsonStr(t *testing.T) { assert.Equal(t, utils.DirExists(filepath.Join(vendorDir, "konfig_v0.0.1")), false) jsonPath, err := json.Marshal(filepath.Join("not_exist", "konfig_v0.0.1")) assert.Equal(t, err, nil) - expectedStr := fmt.Sprintf("{\"packages\":{\"konfig\":{\"name\":\"konfig\",\"manifest_path\":\"%s\"}}}", string(jsonPath)) + expectedStr := fmt.Sprintf("{\"packages\":{\"konfig\":{\"name\":\"konfig\",\"manifest_path\":%s}}}", string(jsonPath)) assert.Equal(t, res, expectedStr) defer func() { if r := os.RemoveAll(filepath.Join("not_exist", "konfig_v0.0.1")); r != nil {