Skip to content

Commit 5558641

Browse files
author
Christian Hergert
committed
tests: drop compartmentalized database after test completes.
1 parent 038e932 commit 5558641

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test-mongoc-database.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ test_create_collection (void)
163163
r = mongoc_collection_drop (collection, &error);
164164
assert (r);
165165

166+
r = mongoc_database_drop (database, &error);
167+
assert (r);
168+
166169
mongoc_collection_destroy (collection);
167170
mongoc_database_destroy (database);
168171
mongoc_client_destroy (client);

0 commit comments

Comments
 (0)