gems: don't load listen and solargraph in test mode.
Only load the `listen` and `solargraph` gems in the development environment, not the test environment. The `listen` gem automatically spawns background threads to listen for file changes, in order to automatically reload code when files change, which we don't want or need in test mode. These threads can interfere with sandboxing, because they prevent us from being able to call unshare(2) (which can only be called from a single-threaded process).
This commit is contained in:
Reference in New Issue
Block a user