@@ -69,7 +69,7 @@ func dbReq(t *testing.T, hf func(http.ResponseWriter, *http.Request), method, pa
69
69
if params [0 ] {
70
70
stdAuth = []middleware.Middleware {
71
71
middleware .WithDB (datastore , volatile , getStripePortalURL ),
72
- middleware .RequireRoot (datastore ),
72
+ middleware .RequireRoot (datastore , volatile ),
73
73
}
74
74
}
75
75
h := middleware .Chain (http .HandlerFunc (hf ), stdAuth ... )
@@ -154,7 +154,7 @@ func TestDBListCollections(t *testing.T) {
154
154
155
155
stdRoot := []middleware.Middleware {
156
156
middleware .WithDB (datastore , volatile , getStripePortalURL ),
157
- middleware .RequireRoot (datastore ),
157
+ middleware .RequireRoot (datastore , volatile ),
158
158
}
159
159
h := middleware .Chain (http .HandlerFunc (database .listCollections ), stdRoot ... )
160
160
@@ -189,7 +189,7 @@ func TestListDocumentsInvalidDB(t *testing.T) {
189
189
190
190
stdRoot := []middleware.Middleware {
191
191
middleware .WithDB (datastore , volatile , getStripePortalURL ),
192
- middleware .RequireRoot (datastore ),
192
+ middleware .RequireRoot (datastore , volatile ),
193
193
}
194
194
h := middleware .Chain (http .HandlerFunc (database .list ), stdRoot ... )
195
195
@@ -312,7 +312,7 @@ func TestDBCreateIndex(t *testing.T) {
312
312
313
313
stdRoot := []middleware.Middleware {
314
314
middleware .WithDB (datastore , volatile , getStripePortalURL ),
315
- middleware .RequireRoot (datastore ),
315
+ middleware .RequireRoot (datastore , volatile ),
316
316
}
317
317
h := middleware .Chain (http .HandlerFunc (database .index ), stdRoot ... )
318
318
0 commit comments