From 65fc7a6f40f33a710bab2b9b86c4e77005bb9ddf Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Wed, 28 Aug 2024 10:00:54 +0200 Subject: [PATCH] update unit test --- cmd/command/crypto/crypto_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/command/crypto/crypto_test.go b/cmd/command/crypto/crypto_test.go index 9470fb74..8a3734c2 100644 --- a/cmd/command/crypto/crypto_test.go +++ b/cmd/command/crypto/crypto_test.go @@ -319,11 +319,15 @@ func TestCheckGitCrypt(t *testing.T) { attributes, err := utils.ReadFile(gitAttributes) assert.NoError(t, err) - assert.Equal(t, attributes, common.Gitattributes) + if !test.createFiles { + assert.Equal(t, attributes, common.Gitattributes) + } ignore, err := utils.ReadFile(gitIgnore) assert.NoError(t, err) - assert.Equal(t, ignore, common.Gitignore) + if !test.createFiles { + assert.Equal(t, ignore, common.Gitignore) + } }) } }