summaryrefslogtreecommitdiff
path: root/jstests/slow2/cursor_timeout.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/slow2/cursor_timeout.js')
-rw-r--r--jstests/slow2/cursor_timeout.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/slow2/cursor_timeout.js b/jstests/slow2/cursor_timeout.js
index 3e80e6c6fa7..4fe24727391 100644
--- a/jstests/slow2/cursor_timeout.js
+++ b/jstests/slow2/cursor_timeout.js
@@ -6,6 +6,7 @@ var configDB = st.config;
var coll = st.s.getDB( 'test' ).user;
adminDB.runCommand({ enableSharding: coll.getDB().getName() });
+st.ensurePrimaryShard(coll.getDB().getName(), 'shard0001');
adminDB.runCommand({ shardCollection: coll.getFullName(), key: { x: 1 }});
var data = 'c';