added container monitor cleanup to fix hanging tests
This commit is contained in:
@@ -17,7 +17,6 @@ const SandboxedModule = require('sandboxed-module')
|
||||
const sinon = require('sinon')
|
||||
require('chai').should()
|
||||
const { expect } = require('chai')
|
||||
require('coffee-script')
|
||||
const modulePath = require('path').join(
|
||||
__dirname,
|
||||
'../../../app/js/DockerRunner'
|
||||
@@ -89,6 +88,10 @@ describe('DockerRunner', function() {
|
||||
return (this.Settings.clsi.docker.env = { PATH: 'mock-path' })
|
||||
})
|
||||
|
||||
afterEach(function() {
|
||||
this.DockerRunner.stopContainerMonitor()
|
||||
})
|
||||
|
||||
describe('run', function() {
|
||||
beforeEach(function(done) {
|
||||
this.DockerRunner._getContainerOptions = sinon
|
||||
|
||||
Reference in New Issue
Block a user