tests/index.jsView |
---|
33 | 33 | |
34 | 34 | tape('basic', async t => { |
35 | 35 | t.plan(2) |
36 | 36 | const expectedState = { |
37 | | - '/': Buffer.from('cd80335de00c2bf38570b41c55a79174c1c64e9f', 'hex') |
| 37 | + '/': Buffer.from('1602fe14ee1e95c9d5cf10e809d0615cb21927a2', 'hex') |
38 | 38 | } |
39 | 39 | |
40 | 40 | const tree = new RadixTree({ |
41 | | - db: db |
| 41 | + db |
42 | 42 | }) |
43 | 43 | |
44 | 44 | class testVMContainer extends BaseContainer { |
45 | 45 | main (m) { |
62 | 62 | |
63 | 63 | tape('two communicating actors', async t => { |
64 | 64 | t.plan(2) |
65 | 65 | const expectedState = { |
66 | | - '/': Buffer.from('b063f3e53b2ea40f50afe964b9f9b49aad491155', 'hex') |
| 66 | + '/': Buffer.from('3cdad3b1024074e7edafadbb98ee162cc8cfe565', 'hex') |
67 | 67 | } |
68 | 68 | |
69 | 69 | const tree = new RadixTree({ |
70 | | - db: db |
| 70 | + db |
71 | 71 | }) |
72 | 72 | |
73 | 73 | class testVMContainerA extends BaseContainer { |
74 | 74 | main (funcRef) { |
108 | 108 | |
109 | 109 | tape('three communicating actors', async t => { |
110 | 110 | t.plan(3) |
111 | 111 | const expectedState = { |
112 | | - '/': Buffer.from('db532195ac569b142415cc9bdbec37f18f344a59', 'hex') |
| 112 | + '/': Buffer.from('7b659c263363b0b9c461a432aac8d8bf0d351788', 'hex') |
113 | 113 | } |
114 | 114 | |
115 | 115 | const tree = new RadixTree({ |
116 | 116 | db: db |
161 | 161 | |
162 | 162 | tape('three communicating actors, with tick counting', async t => { |
163 | 163 | t.plan(3) |
164 | 164 | const expectedState = { |
165 | | - '/': Buffer.from('db532195ac569b142415cc9bdbec37f18f344a59', 'hex') |
| 165 | + '/': Buffer.from('7b659c263363b0b9c461a432aac8d8bf0d351788', 'hex') |
166 | 166 | } |
167 | 167 | |
168 | 168 | const tree = new RadixTree({ |
169 | 169 | db: db |
214 | 214 | |
215 | 215 | tape('errors', async t => { |
216 | 216 | t.plan(3) |
217 | 217 | const expectedState = { |
218 | | - '/': Buffer.from('b063f3e53b2ea40f50afe964b9f9b49aad491155', 'hex') |
| 218 | + '/': Buffer.from('3cdad3b1024074e7edafadbb98ee162cc8cfe565', 'hex') |
219 | 219 | } |
220 | 220 | |
221 | 221 | const tree = new RadixTree({ |
222 | 222 | db: db |
262 | 262 | |
263 | 263 | tape('actor creation', async t => { |
264 | 264 | t.plan(2) |
265 | 265 | const expectedState = { |
266 | | - '/': Buffer.from('8a21d80cd7ca04e64be7cb2726a72060fc546ed6', 'hex') |
| 266 | + '/': Buffer.from('f1803a4188890e205e2e6480159d504d149d8910', 'hex') |
267 | 267 | } |
268 | 268 | |
269 | 269 | const tree = new RadixTree({ |
270 | 270 | db: db |
311 | 311 | |
312 | 312 | tape('simple message arbiter test', async t => { |
313 | 313 | t.plan(4) |
314 | 314 | const expectedState = { |
315 | | - '/': Buffer.from('b063f3e53b2ea40f50afe964b9f9b49aad491155', 'hex') |
| 315 | + '/': Buffer.from('3cdad3b1024074e7edafadbb98ee162cc8cfe565', 'hex') |
316 | 316 | } |
317 | 317 | |
318 | 318 | const tree = new RadixTree({ |
319 | 319 | db: db |
380 | 380 | tape('arbiter test for id comparision', async t => { |
381 | 381 | t.plan(4) |
382 | 382 | let message |
383 | 383 | const expectedState = { |
384 | | - '/': Buffer.from('db532195ac569b142415cc9bdbec37f18f344a59', 'hex') |
| 384 | + '/': Buffer.from('7b659c263363b0b9c461a432aac8d8bf0d351788', 'hex') |
385 | 385 | } |
386 | 386 | |
387 | 387 | const tree = new RadixTree({ |
388 | 388 | db: db |
447 | 447 | |
448 | 448 | tape('async work', async t => { |
449 | 449 | t.plan(3) |
450 | 450 | const expectedState = { |
451 | | - '/': Buffer.from('b063f3e53b2ea40f50afe964b9f9b49aad491155', 'hex') |
| 451 | + '/': Buffer.from('3cdad3b1024074e7edafadbb98ee162cc8cfe565', 'hex') |
452 | 452 | } |
453 | 453 | |
454 | 454 | const tree = new RadixTree({ |
455 | 455 | db: db |