summaryrefslogtreecommitdiff
path: root/internal/authentication/file_user_provider_test.go
diff options
context:
space:
mode:
authorAmir Zarrinkafsh <nightah@me.com>2020-09-18 22:05:43 +1000
committerGitHub <noreply@github.com>2020-09-18 22:05:43 +1000
commitb1a01b1727f00a9f2ac94d74f7f861b44c0fb6fa (patch)
tree73020fd98634a2f03e8566708987ea89cba2b67d /internal/authentication/file_user_provider_test.go
parented5e72508d3c7af7de0d189b37de06592f18daeb (diff)
[CI] Update QEMU to v5.1.0-2 (#1321)
* [CI] Update QEMU to v5.1.0-2 * Fix linter errors from golangci-lint update
Diffstat (limited to 'internal/authentication/file_user_provider_test.go')
-rw-r--r--internal/authentication/file_user_provider_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/authentication/file_user_provider_test.go b/internal/authentication/file_user_provider_test.go
index 2d15c7fbc..8c5fc7c05 100644
--- a/internal/authentication/file_user_provider_test.go
+++ b/internal/authentication/file_user_provider_test.go
@@ -20,17 +20,17 @@ func WithDatabase(content []byte, f func(path string)) {
log.Fatal(err)
}
- defer os.Remove(tmpfile.Name()) // clean up
+ defer os.Remove(tmpfile.Name()) // Clean up
if _, err := tmpfile.Write(content); err != nil {
tmpfile.Close()
- log.Fatal(err)
+ log.Panic(err)
}
f(tmpfile.Name())
if err := tmpfile.Close(); err != nil {
- log.Fatal(err)
+ log.Panic(err)
}
}