git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 88bcb9d3485311c1a0878dbe733373a1e5750698

rempve start

wanderer committed on 7/27/2017, 10:31:49 PM
Parent: ed4f458aeba7570a529d43b589edacf33e4e75e9

Files changed

index.jschanged
kernel.jschanged
tests/index.jschanged
index.jsView
@@ -100,9 +100,8 @@
100100 return instance
101101 } else {
102102 const resolve = this.scheduler.getLock(id)
103103 const instance = await this._loadInstance(id)
104- await instance.startup()
105104 resolve(instance)
106105 return instance
107106 }
108107 }
kernel.jsView
@@ -75,14 +75,8 @@
7575 shutdown () {
7676 this.hypervisor.scheduler.done(this.id)
7777 }
7878
79- startup () {
80- if (this.container.startup) {
81- return this.container.startup()
82- }
83- }
84-
8579 /**
8680 * run the kernels code with a given enviroment
8781 * @param {object} message - the message to run
8882 * @param {boolean} init - whether or not to run the intialization routine
tests/index.jsView
@@ -1072,23 +1072,8 @@
10721072 rootContainer.send(portRef1, message)
10731073 rootContainer.ports.bind('response', rPort)
10741074 })
10751075
1076- tape('start up', async t => {
1077- t.plan(1)
1078- class testVMContainer extends BaseContainer {
1079- run () {}
1080- startup () {
1081- t.true(true, 'should start up')
1082- }
1083- }
1084-
1085- const hypervisor = new Hypervisor(node.dag)
1086- hypervisor.registerContainer('test', testVMContainer)
1087- await hypervisor.createInstance('test')
1088- hypervisor.getInstance(hypervisor.ROOT_ID)
1089- })
1090-
10911076 tape('large code size', async t => {
10921077 t.plan(1)
10931078 const content = Buffer.from(new ArrayBuffer(1000000))
10941079 class testVMContainer extends BaseContainer {

Built with git-ssb-web