fix customslug test: use store receiver
This commit is contained in:
+2
-2
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user