@@ -394,22 +394,26 @@ describe('transaction and message signing [ @E2E ]', function() {
394
394
// Smoke test to validate browserify's buffer polyfills (feross/buffer@5)
395
395
// A companion regression test for Webpack & feross/[email protected] exists at:
396
396
// test/eth.accounts.webpack.js
397
- it ( "encrypt then decrypt wallet" , async function ( ) {
398
- this . timeout ( 10000 ) ;
399
-
400
- const password = "qwerty" ;
401
- const addressFromWallet = wallet [ 0 ] . address ;
397
+ it ( "encrypt then decrypt wallet" , function ( done ) {
398
+ this . timeout ( 20000 ) ;
399
+ try {
400
+ const password = "qwerty" ;
401
+ const addressFromWallet = wallet [ 0 ] . address ;
402
402
403
- const keystore = wallet . encrypt ( password ) ;
403
+ const keystore = wallet . encrypt ( password ) ;
404
404
405
- // Wallet created w/ 10 accounts in before block
406
- assert . equal ( keystore . length , 10 ) ;
405
+ // Wallet created w/ 10 accounts in before block
406
+ assert . equal ( keystore . length , 10 ) ;
407
407
408
- wallet . decrypt ( keystore , password ) ;
409
- assert . equal ( wallet . length , 10 ) ;
408
+ wallet . decrypt ( keystore , password ) ;
409
+ assert . equal ( wallet . length , 10 ) ;
410
410
411
- const addressFromKeystore = wallet [ 0 ] . address ;
412
- assert . equal ( addressFromKeystore , addressFromWallet ) ;
411
+ const addressFromKeystore = wallet [ 0 ] . address ;
412
+ assert . equal ( addressFromKeystore , addressFromWallet ) ;
413
+ done ( )
414
+ } catch ( error ) {
415
+ done ( error )
416
+ }
413
417
} ) ;
414
418
} ) ;
415
419
0 commit comments