Skip to content

Commit

Permalink
Fix Solana integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <sean@mess.org>
  • Loading branch information
seanyoung committed Jun 4, 2024
1 parent aa9efe9 commit 8d99c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/solana/simple.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand All @@ -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 () {
Expand Down

0 comments on commit 8d99c57

Please sign in to comment.