Commit 88bcb9d3485311c1a0878dbe733373a1e5750698
rempve start
wanderer committed on 7/27/2017, 10:31:49 PMParent: ed4f458aeba7570a529d43b589edacf33e4e75e9
Files changed
index.js | changed |
kernel.js | changed |
tests/index.js | changed |
index.js | ||
---|---|---|
@@ -100,9 +100,8 @@ | ||
100 | 100 | return instance |
101 | 101 | } else { |
102 | 102 | const resolve = this.scheduler.getLock(id) |
103 | 103 | const instance = await this._loadInstance(id) |
104 | - await instance.startup() | |
105 | 104 | resolve(instance) |
106 | 105 | return instance |
107 | 106 | } |
108 | 107 | } |
kernel.js | ||
---|---|---|
@@ -75,14 +75,8 @@ | ||
75 | 75 | shutdown () { |
76 | 76 | this.hypervisor.scheduler.done(this.id) |
77 | 77 | } |
78 | 78 | |
79 | - startup () { | |
80 | - if (this.container.startup) { | |
81 | - return this.container.startup() | |
82 | - } | |
83 | - } | |
84 | - | |
85 | 79 | /** |
86 | 80 | * run the kernels code with a given enviroment |
87 | 81 | * @param {object} message - the message to run |
88 | 82 | * @param {boolean} init - whether or not to run the intialization routine |
tests/index.js | ||
---|---|---|
@@ -1072,23 +1072,8 @@ | ||
1072 | 1072 | rootContainer.send(portRef1, message) |
1073 | 1073 | rootContainer.ports.bind('response', rPort) |
1074 | 1074 | }) |
1075 | 1075 | |
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 | - | |
1091 | 1076 | tape('large code size', async t => { |
1092 | 1077 | t.plan(1) |
1093 | 1078 | const content = Buffer.from(new ArrayBuffer(1000000)) |
1094 | 1079 | class testVMContainer extends BaseContainer { |
Built with git-ssb-web