From e35b23f981b62a1c1c054e277a5f67198091fea1 Mon Sep 17 00:00:00 2001 From: zjhe Date: Thu, 12 Jan 2023 14:47:02 +0800 Subject: [PATCH] fix lint issue --- version_helper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version_helper_test.go b/version_helper_test.go index 9d737f5..4db393f 100644 --- a/version_helper_test.go +++ b/version_helper_test.go @@ -51,8 +51,8 @@ func TestOutputNewTestVersionSnapshot(t *testing.T) { defer stub.Reset() err := RecordVersionSnapshot(t, ".", filepath.Join("example", "basic")) require.Nil(t, err) - file, err := os.ReadFile(tmpPath) + file, err := os.ReadFile(filepath.Clean(tmpPath)) require.Nil(t, err) require.Equal(t, snapshot.ToString(), string(file)) - require.True(t, files.FileExists(tmpPath)) + require.True(t, files.FileExists(filepath.Clean(tmpPath))) }