diff options
author | Misha Tyulenev <misha.tyulenev@10gen.com> | 2019-09-05 19:16:25 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-05 19:16:25 +0000 |
commit | a5d6ed827687ad9deb0cdd2856b0a77f3a6583ec (patch) | |
tree | 7d0da8d119a29c61c1f7177e18b24a5014022b52 /jstests/sharding/query_config.js | |
parent | b46eb782c4730c8df589a56550c29c3f3585904a (diff) | |
download | mongo-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.js | 3 |
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++) { |