Skip to content

Commit

Permalink
test: repair vote tests for vote account size feature
Browse files Browse the repository at this point in the history
## Summary

The test validator has this feature turned on: solana-labs/solana#31264. Run the tests as though it's on.

## Test Plan

```shell
pnpm test:live-with-test-validator
```
  • Loading branch information
steveluscher committed May 23, 2023
1 parent 527bafd commit 88618c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/library-legacy/src/programs/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,10 @@ export class VoteProgram {
* This is generated from the solana-vote-program VoteState struct as
* `VoteState::size_of()`:
* https://docs.rs/solana-vote-program/1.9.5/solana_vote_program/vote_state/struct.VoteState.html#method.size_of
*
* KEEP IN SYNC WITH `VoteState::size_of()` in https://github.com/solana-labs/solana/blob/a474cb24b9238f5edcc982f65c0b37d4a1046f7e/sdk/program/src/vote/state/mod.rs#L340-L342
*/
static space: number = 3731;
static space: number = process.env.TEST_LIVE ? 3762 : 3731;

/**
* Generate an Initialize instruction.
Expand Down

0 comments on commit 88618c2

Please sign in to comment.