test(panel): rename colliding login helper in reality-keys test

This commit is contained in:
aaaamoooo
2026-10-21 10:44:54 +00:00
parent a9d98675ac
commit 4199a43660
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"testing"
)
func loginHeaders(t *testing.T, app *App) map[string]string {
func realityLoginHeaders(t *testing.T, app *App) map[string]string {
t.Helper()
rec := doRequest(app, "POST", "/api/auth/login", `{"username":"admin","password":"password12345"}`, nil)
if rec.Code != 200 {
@@ -33,7 +33,7 @@ func TestRealityKeysEndpoint(t *testing.T) {
if err != nil {
t.Fatal(err)
}
headers := loginHeaders(t, app)
headers := realityLoginHeaders(t, app)
rec := doRequest(app, "GET", "/api/nodes/nod_r/reality-keys", "", headers)
if rec.Code != 200 {