test(panel): rename colliding login helper in reality-keys test
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func loginHeaders(t *testing.T, app *App) map[string]string {
|
func realityLoginHeaders(t *testing.T, app *App) map[string]string {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
rec := doRequest(app, "POST", "/api/auth/login", `{"username":"admin","password":"password12345"}`, nil)
|
rec := doRequest(app, "POST", "/api/auth/login", `{"username":"admin","password":"password12345"}`, nil)
|
||||||
if rec.Code != 200 {
|
if rec.Code != 200 {
|
||||||
@@ -33,7 +33,7 @@ func TestRealityKeysEndpoint(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
headers := loginHeaders(t, app)
|
headers := realityLoginHeaders(t, app)
|
||||||
|
|
||||||
rec := doRequest(app, "GET", "/api/nodes/nod_r/reality-keys", "", headers)
|
rec := doRequest(app, "GET", "/api/nodes/nod_r/reality-keys", "", headers)
|
||||||
if rec.Code != 200 {
|
if rec.Code != 200 {
|
||||||
|
|||||||
Reference in New Issue
Block a user