jstests/serverless/libs/basic_serverless_test.js
/*
     * Remove and stops the recipient nodes from the donor set.
     */
Remove and stops the recipient nodes from the donor set.
Remove and stops the recipient nodes from the donor set .
removeAndStopRecipientNodes() {
        print("Removing and stopping recipient nodes");
        const recipientNodes = this.recipientNodes.splice(0);
        recipientNodes.forEach(node => {
            if (this.donor.nodes.includes(node)) {
                this.donor.remove(node);
            } else {
                MongoRunner.stopMongod(node);
            }
        });
    }
removeAndStopRecipientNodes ( ) { print ( "Removing and stopping recipient nodes" ) ; const recipientNodes = this . recipientNodes . splice ( 0 ) ; recipientNodes . forEach ( node => { if ( this . donor . nodes . includes ( node ) ) { this . donor . remove ( node ) ; } else { MongoRunner . stopMongod ( node ) ; } } ) ; }
Remove and stops the recipient nodes from the donor set.
Remove and stops the recipient nodes from the donor set .