From 77c9648f4a3d03951cecdc4c59b1526a0df5d3b1 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 3 Sep 2013 19:40:18 +0900 Subject: [PATCH] Fixes test --- sqlite3_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sqlite3_test.go b/sqlite3_test.go index 94c0798..3df76c0 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -575,12 +575,7 @@ func TestTransaction(t *testing.T) { } rows, err = tx.Query("SELECT id from foo") - if err != nil { - t.Fatal("Unable to query foo table:", err) + if err == nil { + t.Fatal("Expected failure to query") } - - if !rows.Next() { - t.Fatal("Unable to query results:", err) - } - }