Skip to content

Commit

Permalink
fix linter findings
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Nov 21, 2024
1 parent c85f473 commit 40449ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/integration/app/services/key_services_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ func TestCryptoKeyUploadService_Upload_Success(t *testing.T) {
testFileContent := []byte("This is a test file content.")
err = createTestFile(testFilePath, testFileContent)
require.NoError(t, err, "Error creating test file")
defer removeTestFile(testFilePath)
defer func() {
err := removeTestFile(testFilePath)
require.NoError(t, err, "Error deleting test file")
}()

// Call the method under test
userId := uuid.New().String()
Expand Down Expand Up @@ -185,7 +188,10 @@ func TestCryptoKeyDownloadService_Download_Success(t *testing.T) {
testFileContent := []byte("This is a test file content.")
err = createTestFile(testFilePath, testFileContent)
require.NoError(t, err, "Error creating test file")
defer removeTestFile(testFilePath)
defer func() {
err := removeTestFile(testFilePath)
require.NoError(t, err, "Error deleting test file")
}()

// Call the method under test
userId := uuid.New().String()
Expand Down

0 comments on commit 40449ed

Please sign in to comment.