Commit 135b2edb authored by Steven Allen's avatar Steven Allen

testing: sweet sanity

parent d2629a26
......@@ -256,8 +256,8 @@ func testHasNotFound(dirFunc mkShardFunc, t *testing.T) {
if err != nil {
t.Fatalf("Has fail: %v\n", err)
}
if g, e := found, false; g != e {
t.Fatalf("wrong Has: %v != %v", g, e)
if found {
t.Fatal("Has should have returned false")
}
}
......@@ -282,8 +282,8 @@ func testHasFound(dirFunc mkShardFunc, t *testing.T) {
if err != nil {
t.Fatalf("Has fail: %v\n", err)
}
if g, e := found, true; g != e {
t.Fatalf("wrong Has: %v != %v", g, e)
if !found {
t.Fatal("Has should have returned true")
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment