From 03f7991d4adaef270d1e7f929e526e06b7ae4914 Mon Sep 17 00:00:00 2001 From: zongz Date: Tue, 21 Nov 2023 17:44:31 +0800 Subject: [PATCH] fix: fix windows test case Signed-off-by: zongz --- 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 009f625a..07cd1389 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -776,5 +776,5 @@ func TestMetadataOffline(t *testing.T) { assert.Equal(t, res, "{\"packages\":{}}") content_after_metadata, err = os.ReadFile(kclMod) assert.Equal(t, err, nil) - assert.Equal(t, string(content_after_metadata), string(beautifulContent)) + assert.Equal(t, utils.RmNewline(string(content_after_metadata)), utils.RmNewline(string(beautifulContent))) }