provide a default database for the mongo tests
This commit is contained in:
parent
03c82c7463
commit
d275c93ca3
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue