synced with upstream ipfs-service-provider

This commit is contained in:
Chris Troutner
2022-01-18 12:14:51 -08:00
3 changed files with 26 additions and 6 deletions
+5 -2
View File
@@ -97,8 +97,11 @@ class Server {
)
}
// Attach the other IPFS controllers
await controllers.attachControllers(app)
// 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