fix customslug test: use store receiver

This commit is contained in:
2026-09-08 16:10:07 -05:00
parent faf768ad80
commit 7d158834fc
+2 -2
View File
@@ -60,11 +60,11 @@ func TestCustomSlugValidation(t *testing.T) {
func TestSlugCollisionWithAutoID(t *testing.T) { func TestSlugCollisionWithAutoID(t *testing.T) {
s := testServer(t) s := testServer(t)
// manually insert a paste, then try to claim its auto ID as a custom slug // 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 { if err != nil {
t.Fatal(err) 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") t.Fatal("auto id should be claimed")
} }
} }