Skip to content

Commit

Permalink
fix test & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Jan 15, 2025
1 parent d48bff6 commit 5218ac5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/util/encryptionconfig/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ func TestPrepareEncryptionConfigSecretTempConfig_ValidSecretKeySillyData(t *test
},
}
err := prepareEncryptionConfigSecretTempConfig(&testSecret)
file, err := os.Open(EncryptionProviderConfigKey)
defer os.Remove(EncryptionProviderConfigKey)
// Assert that no error is returned
assert.Nil(t, err)
file, err := os.Open(EncryptionProviderConfigKey)
if err != nil {
t.FailNow()
}

// Read the file written by prepareEncryptionConfigSecretTempConfig
actualBytes := make([]byte, 1024)
Expand Down

0 comments on commit 5218ac5

Please sign in to comment.