Skip to content

Commit 7c33882

Browse files
derickrajdavis
authored andcommitted
CDRIVER-2324 Test file 'test-mongoc-topology.c' does not compile if ENABLE_COMPRESSION is not set
1 parent b8c26bf commit 7c33882

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test-mongoc-topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ _test_topology_invalidate_server (bool pooled)
345345
BSON_ASSERT (bson_empty (&sd->hosts));
346346
BSON_ASSERT (bson_empty (&sd->passives));
347347
BSON_ASSERT (bson_empty (&sd->arbiters));
348+
#ifdef MONGOC_ENABLE_COMPRESSION
348349
BSON_ASSERT (bson_empty (&sd->compressors));
350+
#endif
349351

350352
mongoc_server_stream_cleanup (server_stream);
351353

0 commit comments

Comments
 (0)