diff options
author | Benety Goh <benety@mongodb.com> | 2016-09-16 14:07:46 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2016-09-16 14:07:46 -0400 |
commit | 761612fec36b1deeb0369605e615dc6ded1e2c1d (patch) | |
tree | e0ffa0f8b02077615794f0a6c0680ebf4b809086 /jstests/replsets/disallow_adding_initialized_node2.js | |
parent | f9af4a9f81e0fadb003215bd5e4a03b348ac1c99 (diff) | |
download | mongo-761612fec36b1deeb0369605e615dc6ded1e2c1d.tar.gz |
Revert "SERVER-23136 remove heartbeat error message check from disallow_adding_initialized_node2.js - we are already checking the logs for the inconsistent replica set id message"
This reverts commit f9af4a9f81e0fadb003215bd5e4a03b348ac1c99.
Diffstat (limited to 'jstests/replsets/disallow_adding_initialized_node2.js')
-rw-r--r-- | jstests/replsets/disallow_adding_initialized_node2.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/disallow_adding_initialized_node2.js b/jstests/replsets/disallow_adding_initialized_node2.js index 14e53bf3208..6346744893f 100644 --- a/jstests/replsets/disallow_adding_initialized_node2.js +++ b/jstests/replsets/disallow_adding_initialized_node2.js @@ -93,6 +93,9 @@ assert.eq(12, statusA.members[2]._id); assert.eq(primaryB.host, statusA.members[2].name); assert.eq(ReplSetTest.State.DOWN, statusA.members[2].state); + assert(statusA.members[2].lastHeartbeatMessage.indexOf(msgA) != -1 || + statusA.members[2].lastHeartbeatMessage.indexOf( + 'no response within election timeout period') != -1); // Replica set B's config should remain unchanged. assert.eq(1, statusB.members.length); |