From d275c93ca36064ec9363c7c7bbab729beb66928a Mon Sep 17 00:00:00 2001 From: Bryan Kendall Date: Sat, 1 Nov 2014 15:52:47 -0700 Subject: [PATCH] provide a default database for the mongo tests --- cayley_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cayley_test.go b/cayley_test.go index df3043b..995f7eb 100644 --- a/cayley_test.go +++ b/cayley_test.go @@ -392,6 +392,9 @@ func prepare(t testing.TB) { } case "mongo": cfg.DatabasePath = "localhost:27017" + cfg.DatabaseOptions = map[string]interface{}{ + "database_name": "cayley_test", // provide a default test database + } default: t.Fatalf("Untestable backend store %s", *backend) }