tests/index.jsView |
---|
79 | 79 … | }) |
80 | 80 … | |
81 | 81 … | tape('basic', async t => { |
82 | 82 … | |
83 | | - const expectedState = Buffer.from('757b51d7da3195f9bb9d211c8fd382fc526b31e6', 'hex') |
| 83 … | + const expectedState = Buffer.from('efb2101f2748e73a8ea1601096792e357f4b637d', 'hex') |
84 | 84 … | const tree = new RadixTree({ |
85 | 85 … | db |
86 | 86 … | }) |
87 | 87 … | |
109 | 109 … | }) |
110 | 110 … | |
111 | 111 … | tape('two communicating actors', async t => { |
112 | 112 … | t.plan(2) |
113 | | - const expectedState = Buffer.from('dc389dcfe9350e2fd0a570ca4e0c9dba801dc7ca', 'hex') |
| 113 … | + const expectedState = Buffer.from('390c2dfd34e74b3850c6efd26d8eddaa2d9c5630', 'hex') |
114 | 114 … | |
115 | 115 … | const tree = new RadixTree({ |
116 | 116 … | db |
117 | 117 … | }) |
156 | 156 … | }) |
157 | 157 … | |
158 | 158 … | tape('three communicating actors', async t => { |
|
159 | 159 … | t.plan(3) |
160 | | - const expectedState = Buffer.from('916a9ce593fdd553723118ca82d11caa28b76e99', 'hex') |
| 160 … | + const expectedState = Buffer.from('07e1993d9069410aed847bb0c709def821f13bb5', 'hex') |
161 | 161 … | const tree = new RadixTree({ |
162 | 162 … | db: db |
163 | 163 … | }) |
164 | 164 … | |
206 | 206 … | }) |
207 | 207 … | |
208 | 208 … | tape('three communicating actors, with tick counting', async t => { |
209 | 209 … | t.plan(3) |
210 | | - const expectedState = Buffer.from('916a9ce593fdd553723118ca82d11caa28b76e99', 'hex') |
| 210 … | + const expectedState = Buffer.from('07e1993d9069410aed847bb0c709def821f13bb5', 'hex') |
211 | 211 … | const tree = new RadixTree({ |
212 | 212 … | db |
213 | 213 … | }) |
214 | 214 … | |
261 | 261 … | }) |
262 | 262 … | |
263 | 263 … | tape('errors', async t => { |
264 | 264 … | t.plan(3) |
265 | | - const expectedState = Buffer.from('dc389dcfe9350e2fd0a570ca4e0c9dba801dc7ca', 'hex') |
| 265 … | + const expectedState = Buffer.from('390c2dfd34e74b3850c6efd26d8eddaa2d9c5630', 'hex') |
266 | 266 … | const tree = new RadixTree({ |
267 | 267 … | db |
268 | 268 … | }) |
269 | 269 … | |
359 | 359 … | }) |
360 | 360 … | |
361 | 361 … | tape('actor creation', async t => { |
362 | 362 … | t.plan(2) |
363 | | - const expectedState = Buffer.from('aa0089210c2ee081f299c84a31b55898e4aad339', 'hex') |
| 363 … | + const expectedState = Buffer.from('1382a414f4d0d261eba13c238339e8e803bdbf61', 'hex') |
364 | 364 … | |
365 | 365 … | const tree = new RadixTree({ |
366 | 366 … | db |
367 | 367 … | }) |
372 | 372 … | const message = new Message({ |
373 | 373 … | funcRef: actor.getFuncRef('main'), |
374 | 374 … | funcArguments: [{ |
375 | 375 … | identifier: [0, 'main'], |
376 | | - actorID: this.actor.id |
| 376 … | + actorId: this.actor.id |
377 | 377 … | }] |
378 | 378 … | }) |
379 | 379 … | this.actor.send(message) |
380 | 380 … | } |
404 | 404 … | }) |
405 | 405 … | |
406 | 406 … | tape('simple message arbiter test', async t => { |
407 | 407 … | t.plan(4) |
408 | | - const expectedState = Buffer.from('dc389dcfe9350e2fd0a570ca4e0c9dba801dc7ca', 'hex') |
| 408 … | + const expectedState = Buffer.from('390c2dfd34e74b3850c6efd26d8eddaa2d9c5630', 'hex') |
409 | 409 … | const tree = new RadixTree({ |
410 | 410 … | db |
411 | 411 … | }) |
412 | 412 … | |
472 | 472 … | |
473 | 473 … | tape('arbiter test for id comparision', async t => { |
474 | 474 … | t.plan(5) |
475 | 475 … | let message |
476 | | - const expectedState = Buffer.from('916a9ce593fdd553723118ca82d11caa28b76e99', 'hex') |
| 476 … | + const expectedState = Buffer.from('07e1993d9069410aed847bb0c709def821f13bb5', 'hex') |
477 | 477 … | |
478 | 478 … | const tree = new RadixTree({ |
479 | 479 … | db: db |
480 | 480 … | }) |
540 | 540 … | }) |
541 | 541 … | |
542 | 542 … | tape('async work', async t => { |
543 | 543 … | t.plan(3) |
544 | | - const expectedState = Buffer.from('dc389dcfe9350e2fd0a570ca4e0c9dba801dc7ca', 'hex') |
| 544 … | + const expectedState = Buffer.from('390c2dfd34e74b3850c6efd26d8eddaa2d9c5630', 'hex') |
545 | 545 … | |
546 | 546 … | const tree = new RadixTree({ |
547 | 547 … | db |
548 | 548 … | }) |
628 | 628 … | const actor = hypervisor.newActor(testVMContainer) |
629 | 629 … | |
630 | 630 … | const message = new Message({ |
631 | 631 … | funcRef: actor.getFuncRef('main'), |
632 | | - funcArguments: [new FunctionRef({actorID: egress.id})] |
| 632 … | + funcArguments: [new FunctionRef({actorId: egress.id})] |
633 | 633 … | }) |
634 | 634 … | |
635 | 635 … | hypervisor.send(message) |
636 | 636 … | }) |