Prechádzať zdrojové kódy

Fix Solana integration tests (#1646)

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 1 rok pred
rodič
commit
668f9f285d
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      integration/solana/simple.spec.ts

+ 3 - 3
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 () {