diff options
Diffstat (limited to 'jstests/sharding/libs/resharding_test_fixture.js')
-rw-r--r-- | jstests/sharding/libs/resharding_test_fixture.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/sharding/libs/resharding_test_fixture.js b/jstests/sharding/libs/resharding_test_fixture.js index 487eb751c57..330d68892fb 100644 --- a/jstests/sharding/libs/resharding_test_fixture.js +++ b/jstests/sharding/libs/resharding_test_fixture.js @@ -262,6 +262,11 @@ var ReshardingTest = class { return sourceCollection; } + get tempNs() { + assert.neq(undefined, this._tempNs, "createShardedCollection must be called first"); + return this._tempNs; + } + /** * Reshards an existing collection using the specified new shard key and new chunk ranges. * |