diff options
Diffstat (limited to 'jstests/sharding/resharding_abort_command.js')
| -rw-r--r-- | jstests/sharding/resharding_abort_command.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/resharding_abort_command.js b/jstests/sharding/resharding_abort_command.js index 7c5f4a95cb0..f8e7aeaf9f5 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.shardingStatistics.hasOwnProperty("resharding"), status); + assert(!status.hasOwnProperty('shardingStatistics'), status); let expectedAbortErrorCodes = ErrorCodes.OK; let expectedReshardingErrorCode = ErrorCodes.ReshardCollectionAborted; |
