mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-18 18:58:54 +02:00
Fix linter errors + some general clean up
This commit is contained in:
@@ -525,6 +525,8 @@ func TestHealthcheck(t *testing.T) {
|
||||
func TestLimitRegistrations(t *testing.T) {
|
||||
// Set up
|
||||
InitDB()
|
||||
checkGormResult(GLOBAL_DB.Exec("DELETE FROM enc_history_entries"))
|
||||
checkGormResult(GLOBAL_DB.Exec("DELETE FROM devices"))
|
||||
defer testutils.BackupAndRestoreEnv("HISHTORY_MAX_NUM_USERS")()
|
||||
os.Setenv("HISHTORY_MAX_NUM_USERS", "2")
|
||||
|
||||
|
Reference in New Issue
Block a user