Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Solana integration tests #1646

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading