Merge pull request #180 from bkendall/fix-mongo-cache-no-tests

Prevent empty values in cache (using mongo)
This commit is contained in:
Barak Michener 2015-02-03 18:58:33 -05:00
commit d2434b024d
2 changed files with 5 additions and 1 deletions

View file

@ -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)
}