summaryrefslogtreecommitdiff
path: root/jstests/sharding/resharding_abort_command.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/resharding_abort_command.js')
-rw-r--r--jstests/sharding/resharding_abort_command.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/resharding_abort_command.js b/jstests/sharding/resharding_abort_command.js
index f8e7aeaf9f5..7c5f4a95cb0 100644
--- a/jstests/sharding/resharding_abort_command.js
+++ b/jstests/sharding/resharding_abort_command.js
@@ -177,7 +177,7 @@ const runAbortWithFailpoint = (failpointName, failpointNodeType, abortLocation,
// Resharding has not been attempted yet, so resharding metrics will not be reported. This means
// shardingStatistics will be empty, and thus not reported. So we assert that the serverStatus
// does not have shardingStatistics yet.
- assert(!status.hasOwnProperty('shardingStatistics'), status);
+ assert(!status.shardingStatistics.hasOwnProperty("resharding"), status);
let expectedAbortErrorCodes = ErrorCodes.OK;
let expectedReshardingErrorCode = ErrorCodes.ReshardCollectionAborted;