aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_items_undo_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/api_items_undo_test.go')
-rw-r--r--internal/admin/api_items_undo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/admin/api_items_undo_test.go b/internal/admin/api_items_undo_test.go
index 3ccbe10..d554bc6 100644
--- a/internal/admin/api_items_undo_test.go
+++ b/internal/admin/api_items_undo_test.go
@@ -31,7 +31,7 @@ func TestAccountAPIRedactsMultilinePasswordHash(t *testing.T) {
s := &AdminServer{accountStore: player.NewAccountStore(dir)}
rr := httptest.NewRecorder()
- s.getAccount(rr, httptest.NewRequest("GET", "/api/players/account/alice", nil), "alice")
+ s.getAccount(rr, "alice")
if strings.Contains(rr.Body.String(), "sensitive-hash-sentinel") {
t.Fatalf("password hash leaked in response: %s", rr.Body.String())