blob: 31a0f7a85a561098427eec3c63f783707258c83b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
(function() {
'use strict';
var conn = MongoRunner.runMongod();
var connA = new Mongo(conn.host);
var connB = new Mongo(conn.host);
var res;
res = assert.commandFailed(connA.adminCommand({
moveChunk: 'DummyDB.DummyColl',
find: {e: 0},
to: 'DummyShard',
configdb: 'localhost:1',
maxTimeMS: 10000
}));
assert.eq(ErrorCodes.ExceededTimeLimit, res.code);
res = assert.commandFailed(connB.adminCommand({
moveChunk: 'DummyDB.DummyColl',
find: {e: 0},
to: 'DummyShard',
configdb: 'localhost:1',
maxTimeMS: 10000
}));
assert.eq(ErrorCodes.ExceededTimeLimit, res.code);
MongoRunner.stopMongod(conn);
})();
|