I am running a test which involves sending transactions to a smart contract from multiple nodes. Right now, I have seperate truffle folders in each node, with a test file that sends the transactions to the right contract. In addition, the first node's test file includes additional logic (apart from sending the transactions) that monitors the generated events from all transactions and makes calculations. From my understanding, there is no way to implement this logic in a single test file as truffle uses the config file to open only 1 connection and it is not possible to have multiple connections in 1 truffle instance?
web3 = new Web3(...)
instance given to you by Truffle "for free" yourself, but that's about it. If you're on Truffle 4.x or lower and your web3.js version is 1.x or higher, then you'll need to do some more work in adjusting your code. But all in all, it shouldn't be that difficult. – goodvibration Mar 10 '20 at 17:05