diff --git a/pkg/configs/db/db_test.go b/pkg/configs/db/db_test.go index ee99de7092..0a007cefc9 100644 --- a/pkg/configs/db/db_test.go +++ b/pkg/configs/db/db_test.go @@ -30,7 +30,7 @@ func TestSetUserPassword(t *testing.T) { defer os.Remove(passwordFile.Name()) defer passwordFile.Close() - _, err = passwordFile.WriteString(" password ") + _, err = passwordFile.WriteString("\n\tpassword\n\n\t") if err != nil { t.Fatalf("error while writing to the password file: %v", err) }