diff --git a/tests/js/client/active-failover/basic.js b/tests/js/client/active-failover/basic.js index 356ccd76ce..3f5a6f3db3 100644 --- a/tests/js/client/active-failover/basic.js +++ b/tests/js/client/active-failover/basic.js @@ -1,5 +1,5 @@ /*jshint strict: false, sub: true */ -/*global print, assertTrue, assertEqual */ +/*global print, assertTrue, assertEqual, assertNotEqual */ 'use strict'; //////////////////////////////////////////////////////////////////////////////// @@ -311,7 +311,7 @@ function ActiveFailoverSuite() { let oldLead = currentLead; // await failover and check that follower get in sync currentLead = checkForFailover(currentLead); - assertTrue(currentLead !== oldLead); + assertNotEqual(currentLead, oldLead); print("Failover to new leader : ", currentLead); internal.wait(5); // settle down, heartbeat interval is 1s @@ -463,7 +463,7 @@ function ActiveFailoverSuite() { /*testCleanup: function () { let res = readAgencyValue("/arango/Plan/AsyncReplication/Leader"); - assertTrue(res !== null); + assertNotEqual(res, null); let uuid = res[0].arango.Plan.AsyncReplication.Leader; res = readAgencyValue("/arango/Supervision/Health"); let lead = res[0].arango.Supervision.Health[uuid].Endpoint; diff --git a/tests/js/client/active-failover/readonly.js b/tests/js/client/active-failover/readonly.js index c21bf80fe4..7cfc756584 100644 --- a/tests/js/client/active-failover/readonly.js +++ b/tests/js/client/active-failover/readonly.js @@ -418,7 +418,7 @@ function ActiveFailoverSuite() { // await failover and check that follower get in sync currentLead = checkForFailover(currentLead); - assertTrue(currentLead === firstLeader, "Did not fail to original leader"); + assertEqual(currentLead, firstLeader, "Did not fail to original leader"); suspended.forEach(arangod => { print("Resuming: ", arangod.endpoint);