Skip to content

Commit

Permalink
fix: fix windows test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe committed Sep 25, 2023
1 parent 4fc9641 commit b3ea4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b3ea4ef

Please sign in to comment.