jstests/serverless/libs/basic_serverless_test.js
/*
     * Takes an rstArgs produced by createArgs and remove the recipient nodes from it.
     */
Takes an rstArgs produced by createArgs and remove the recipient nodes from it.
Takes an rstArgs produced by createArgs and remove the recipient nodes from it .
removeRecipientsFromRstArgs(rstArgs) {
        rstArgs.nodeHosts = rstArgs.nodeHosts.filter(nodeString => {
            const port = parseInt(nodeString.split(":")[1]);
            return !this.recipientNodes.some(node => node.port == port);
        });
    }
removeRecipientsFromRstArgs ( rstArgs ) { rstArgs . nodeHosts = rstArgs . nodeHosts . filter ( nodeString => { const port = parseInt ( nodeString . split ( ":" ) [ 1 ] ) ; return ! this . recipientNodes . some ( node => node . port == port ) ; } ) ; }
Takes an rstArgs produced by createArgs and remove the recipient nodes from it.
Takes an rstArgs produced by createArgs and remove the recipient nodes from it .