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('be8e779df9d2ba23e5a6fcb3e551708cbc0fde82', '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('25bc7e81511bfded44a1846f4bca1acc99f24273', '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('862f3393675dd33fb7e9b93b43aac7a9131ef665', '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('862f3393675dd33fb7e9b93b43aac7a9131ef665', '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('25bc7e81511bfded44a1846f4bca1acc99f24273', '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('007c3ef07195d2c3959f22f1d2719ed4f4e4193a', 'hex') |
364 | 364 … | |
365 | 365 … | const tree = new RadixTree({ |
366 | 366 … | db |
367 | 367 … | }) |
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('25bc7e81511bfded44a1846f4bca1acc99f24273', '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('862f3393675dd33fb7e9b93b43aac7a9131ef665', '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('25bc7e81511bfded44a1846f4bca1acc99f24273', 'hex') |
545 | 545 … | |
546 | 546 … | const tree = new RadixTree({ |
547 | 547 … | db |
548 | 548 … | }) |