Fix tests

This commit is contained in:
Las Zenow 2014-07-09 23:25:11 -05:00
parent 40800c6527
commit 94acf36994

View file

@ -2,10 +2,6 @@ package database
import "testing"
import (
"labix.org/v2/mgo/bson"
)
var book = map[string]interface{}{
"title": "some title",
"author": []string{"Alice", "Bob"},
@ -17,7 +13,7 @@ func TestAddBook(t *testing.T) {
tAddBook(t, db)
books, num, err := db.GetBooks(bson.M{}, 1, 0)
books, num, err := db.GetNewBooks(1, 0)
if err != nil {
t.Fatalf("db.GetBooks() return an error: ", err)
}