Browse Source

handle errs

ameba23 2 years ago
parent
commit
56ebd45b20
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      test/index.test.js

+ 2
- 1
test/index.test.js View File

@@ -548,11 +548,12 @@ describe('replicate with derived keypair', (context) => {
548 548
 
549 549
     var dog = 'dog'
550 550
     core1.append(dog, (err, seq) => {
551
-
551
+      assert.error(err, 'no error')
552 552
       replicate(core1, core2, (err) => {
553 553
         assert.error(err, 'no error')
554 554
 
555 555
         core2.get(0, (err, msg) => {
556
+          assert.error(err, 'no error')
556 557
           assert.same(msg.toString(), dog, 'gets the dog')
557 558
           cleanup([storage1, storage2], next)
558 559
         })