From 8d99c572f5898ea6fdc30c98580ca162c91d19df Mon Sep 17 00:00:00 2001 From: Sean Young Date: Tue, 4 Jun 2024 16:57:10 +0100 Subject: [PATCH] Fix Solana integration tests Signed-off-by: Sean Young --- integration/solana/simple.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/solana/simple.spec.ts b/integration/solana/simple.spec.ts index ed31ad2ca..536d4acb5 100644 --- a/integration/solana/simple.spec.ts +++ b/integration/solana/simple.spec.ts @@ -351,7 +351,7 @@ describe('Simple solang tests', function () { it('account storage too small constructor', async function () { await expect(loadContractAndCallConstructor('store', [], 100)) .rejects - .toThrowError(new Error('failed to send transaction: Transaction simulation failed: Error processing Instruction 0: account data too small for instruction')); + .toThrowError('Transaction simulation failed: Error processing Instruction 0: account data too small for instruction'); }); it('account storage too small dynamic alloc', async function () { @@ -362,7 +362,7 @@ describe('Simple solang tests', function () { // set a load of string which will overflow await expect(program.methods.setFoo1().accounts({ dataAccount: storage.publicKey }).rpc()) .rejects - .toThrowError(new Error('failed to send transaction: Transaction simulation failed: Error processing Instruction 0: account data too small for instruction')); + .toThrowError('Transaction simulation failed: Error processing Instruction 0: account data too small for instruction'); }); it('account storage too small dynamic realloc', async function () { @@ -377,7 +377,7 @@ describe('Simple solang tests', function () { // do realloc until failure await expect(push_until_bang()) .rejects - .toThrowError(new Error('failed to send transaction: Transaction simulation failed: Error processing Instruction 0: account data too small for instruction')); + .toThrowError('Transaction simulation failed: Error processing Instruction 0: account data too small for instruction'); }); it('arrays in account storage', async function () {