Error on blank post IDs for get post query (#5326)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0162d8ad08
Коммит
f1c9ae5686
@@ -61,6 +61,10 @@ func TestPostStoreGet(t *testing.T) {
|
||||
if err := (<-store.Post().Get("123")).Err; err == nil {
|
||||
t.Fatal("Missing id should have failed")
|
||||
}
|
||||
|
||||
if err := (<-store.Post().Get("")).Err; err == nil {
|
||||
t.Fatal("should fail for blank post ids")
|
||||
}
|
||||
}
|
||||
|
||||
func TestPostStoreGetSingle(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user