Skip to content

Commit c0d7b7c

Browse files
committed
Destroy the mock_server after the test
This fixes odd and quirky and unrelated test failures on Windows \o/
1 parent 7583925 commit c0d7b7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test-mongoc-find-and-modify.c

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ test_find_and_modify_bypass (bool bypass)
128128

129129
mongoc_collection_destroy (collection);
130130
mongoc_client_destroy (client);
131+
mock_server_destroy (server);
131132
bson_destroy (&doc);
132133
}
133134

@@ -219,6 +220,7 @@ test_find_and_modify_write_concern (int wire_version)
219220
mongoc_collection_destroy (collection);
220221
mongoc_client_destroy (client);
221222
bson_destroy (&doc);
223+
mock_server_destroy (server);
222224
}
223225

224226
static void

0 commit comments

Comments
 (0)