mirror of https://github.com/embarklabs/embark.git
fix(@embark/tests): fix slow embark test because of the tx-logger
The transaction-logger was slowing down tests because each Tx, it would read a file and write to it, but that's slow and even got slower as the file grew bigger To fix, I removed the Tx-logger from text, along with the profiler as they are useless for tests (cherry picked from commit a656eea7dda83ad970615cffd51cce5d53a1d034)
This commit is contained in:
parent
765e889121
commit
1e9b8d8595
|
@ -768,7 +768,12 @@ class EmbarkController {
|
|||
|
||||
engine.registerModuleGroup("blockchain");
|
||||
engine.registerModuleGroup("compiler");
|
||||
engine.registerModuleGroup("contracts");
|
||||
engine.registerModulePackage('embark-ganache');
|
||||
engine.registerModulePackage('embark-ethereum-blockchain-client');
|
||||
engine.registerModulePackage('embark-web3');
|
||||
engine.registerModulePackage('embark-accounts-manager');
|
||||
engine.registerModulePackage('embark-rpc-manager');
|
||||
engine.registerModulePackage('embark-specialconfigs', { plugins: engine.plugins });
|
||||
engine.registerModuleGroup("pipeline");
|
||||
engine.registerModuleGroup("tests", options);
|
||||
engine.registerModulePackage('embark-deploy-tracker', { plugins: engine.plugins, trackContracts: false });
|
||||
|
|
|
@ -47,6 +47,7 @@ export default class TransactionLogger {
|
|||
});
|
||||
|
||||
this.writeLogFile = async.cargo((tasks, callback) => {
|
||||
// TODO change this to only read once then use memory, because it slows things down a lot to read on each TX
|
||||
const data = this._readLogs();
|
||||
|
||||
tasks.forEach(task => {
|
||||
|
|
Loading…
Reference in New Issue