From 7d158834fcc4fca573a57b3e65bd5ffa77d6cf1e Mon Sep 17 00:00:00 2001 From: poslop Date: Tue, 8 Sep 2026 16:10:07 -0500 Subject: [PATCH] fix customslug test: use store receiver --- customslug_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customslug_test.go b/customslug_test.go index 0e223d7..394af86 100644 --- a/customslug_test.go +++ b/customslug_test.go @@ -60,11 +60,11 @@ func TestCustomSlugValidation(t *testing.T) { func TestSlugCollisionWithAutoID(t *testing.T) { s := testServer(t) // manually insert a paste, then try to claim its auto ID as a custom slug - p, err := s.CreatePaste(&Paste{Content: "auto"}) + p, err := s.store.CreatePaste(&Paste{Content: "auto"}) if err != nil { t.Fatal(err) } - if taken, _ := s.SlugTaken(p.ID); !taken { + if taken, _ := s.store.SlugTaken(p.ID); !taken { t.Fatal("auto id should be claimed") } }