From e0f1620ee35372f94c778235f054964488c30bf5 Mon Sep 17 00:00:00 2001 From: junderw Date: Thu, 11 Nov 2021 21:18:41 +0900 Subject: [PATCH] Fix error message for Bitcoin Core v22.0 --- test/integration/cltv.spec.ts | 2 +- test/integration/csv.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/cltv.spec.ts b/test/integration/cltv.spec.ts index 4b2eb66..c1a52de 100644 --- a/test/integration/cltv.spec.ts +++ b/test/integration/cltv.spec.ts @@ -250,7 +250,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', () => { await regtestUtils.broadcast(tx.toHex()).catch(err => { assert.throws(() => { if (err) throw err; - }, /Error: non-final \(code 64\)/); + }, /Error: non-final/); }); }, ); diff --git a/test/integration/csv.spec.ts b/test/integration/csv.spec.ts index 81b0943..9993d5c 100644 --- a/test/integration/csv.spec.ts +++ b/test/integration/csv.spec.ts @@ -219,7 +219,7 @@ describe('bitcoinjs-lib (transactions w/ CSV)', () => { await regtestUtils.broadcast(tx.toHex()).catch(err => { assert.throws(() => { if (err) throw err; - }, /Error: non-BIP68-final \(code 64\)/); + }, /Error: non-BIP68-final/); }); }, );