mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
fix(tests): Skipping IPFS stuff in test environment
This commit is contained in:
+5
-2
@@ -91,8 +91,11 @@ class Server {
|
|||||||
const success = await this.adminLib.createSystemUser()
|
const success = await this.adminLib.createSystemUser()
|
||||||
if (success) console.log('System admin user created.')
|
if (success) console.log('System admin user created.')
|
||||||
|
|
||||||
// Attach the other IPFS controllers
|
// Attach the other IPFS controllers.
|
||||||
await controllers.attachControllers(app)
|
// Skip if this is a test environment.
|
||||||
|
if (config.env !== 'test') {
|
||||||
|
await controllers.attachControllers(app)
|
||||||
|
}
|
||||||
|
|
||||||
// ipfs-coord has a memory leak. This app shuts down after 4 hours. It
|
// ipfs-coord has a memory leak. This app shuts down after 4 hours. It
|
||||||
// expects to be run by Docker or pm2, which can automatically restart
|
// expects to be run by Docker or pm2, which can automatically restart
|
||||||
|
|||||||
Reference in New Issue
Block a user