fix(tests): Skipping IPFS stuff in test environment

This commit is contained in:
Chris Troutner
2022-01-09 11:51:15 -08:00
parent 5a1ec640a4
commit 463d7df582
+4 -1
View File
@@ -91,8 +91,11 @@ class Server {
const success = await this.adminLib.createSystemUser()
if (success) console.log('System admin user created.')
// Attach the other IPFS controllers
// Attach the other IPFS controllers.
// 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
// expects to be run by Docker or pm2, which can automatically restart