summaryrefslogtreecommitdiff
path: root/jstests/sharding/query_config.js
diff options
context:
space:
mode:
authorMisha Tyulenev <misha.tyulenev@10gen.com>2019-09-05 19:16:25 +0000
committerevergreen <evergreen@mongodb.com>2019-09-05 19:16:25 +0000
commita5d6ed827687ad9deb0cdd2856b0a77f3a6583ec (patch)
tree7d0da8d119a29c61c1f7177e18b24a5014022b52 /jstests/sharding/query_config.js
parentb46eb782c4730c8df589a56550c29c3f3585904a (diff)
downloadmongo-a5d6ed827687ad9deb0cdd2856b0a77f3a6583ec.tar.gz
SERVER-42857 wait for config.mongos collection to be created in an integration test
Diffstat (limited to 'jstests/sharding/query_config.js')
-rw-r--r--jstests/sharding/query_config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/sharding/query_config.js b/jstests/sharding/query_config.js
index d6755814229..889999b6173 100644
--- a/jstests/sharding/query_config.js
+++ b/jstests/sharding/query_config.js
@@ -88,6 +88,9 @@ var testListConfigCollections = function(st) {
configDB.createCollection(userAddedColl.getName());
configCollList.push(userAddedColl.getName());
+ // wait for config.mongos to be created by ShardingUptimeReporter
+ assert.soon(() => configDB.mongos.exists());
+
cursor = getListCollectionsCursor(configDB);
cursorArray = cursorGetCollectionNames(cursor);
for (var i = 0; i < configCollList.length; i++) {