Skip to content

Commit

Permalink
rempve start
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderer committed Jul 27, 2017
1 parent ed4f458 commit 88bcb9d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -101,7 +101,6 @@ module.exports = class Hypervisor {
} else {
const resolve = this.scheduler.getLock(id)
const instance = await this._loadInstance(id)
await instance.startup()
resolve(instance)
return instance
}
Expand Down
6 changes: 0 additions & 6 deletions kernel.js
Expand Up @@ -76,12 +76,6 @@ module.exports = class Kernel {
this.hypervisor.scheduler.done(this.id)
}

startup () {
if (this.container.startup) {
return this.container.startup()
}
}

/**
* run the kernels code with a given enviroment
* @param {object} message - the message to run
Expand Down
15 changes: 0 additions & 15 deletions tests/index.js
Expand Up @@ -1073,21 +1073,6 @@ node.on('ready', () => {
rootContainer.ports.bind('response', rPort)
})

tape('start up', async t => {
t.plan(1)
class testVMContainer extends BaseContainer {
run () {}
startup () {
t.true(true, 'should start up')
}
}

const hypervisor = new Hypervisor(node.dag)
hypervisor.registerContainer('test', testVMContainer)
await hypervisor.createInstance('test')
hypervisor.getInstance(hypervisor.ROOT_ID)
})

tape('large code size', async t => {
t.plan(1)
const content = Buffer.from(new ArrayBuffer(1000000))
Expand Down

0 comments on commit 88bcb9d

Please sign in to comment.