Skip to content

Commit

Permalink
fix on Dockerfile to not print bigint-buffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Dec 19, 2023
1 parent c394167 commit bf799ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion .github/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:latest AS builder

RUN apt-get update && \
apt-get install -y curl cargo pkg-config build-essential libudev-dev
apt-get install -y curl cargo pkg-config build-essential libudev-dev python3

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y

Expand Down
28 changes: 0 additions & 28 deletions test/setup/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,6 @@ export default async (): Promise<void> => {
const votePubkey = await TestWorld.getSolanaTestValidatorVoteAccountPubkey()

// --- CREATING STAKE ACCOUNT and DELEGATE ---
// create a stake account that will be used later in all tests
const tx = new Transaction()
const ixStakeAccount = StakeProgram.createAccount({
authorized: {
staker: TestWorld.PROVIDER.wallet.publicKey,
withdrawer: TestWorld.PROVIDER.wallet.publicKey,
},
fromPubkey: TestWorld.PROVIDER.wallet.publicKey,
lamports: 2 * LAMPORTS_PER_SOL,
stakePubkey: TestWorld.STAKE_ACCOUNT.publicKey,
})
tx.add(ixStakeAccount)
/// delegating stake account to the vote account
const ixDelegate = StakeProgram.delegate({
authorizedPubkey: TestWorld.PROVIDER.wallet.publicKey,
stakePubkey: TestWorld.STAKE_ACCOUNT.publicKey,
votePubkey,
})
tx.add(ixDelegate)
await TestWorld.PROVIDER.sendAndConfirm(tx, [TestWorld.STAKE_ACCOUNT])

const stakeBalance = await TestWorld.CONNECTION.getBalance(
TestWorld.STAKE_ACCOUNT.publicKey
)
await TestWorld.CONNECTION.getAccountInfo(TestWorld.STAKE_ACCOUNT.publicKey)
if (!stakeBalance) {
throw new Error('Jest global setup error: no stake account balance')
}
await createAndDelegateStake(TestWorld.STAKE_ACCOUNT, votePubkey)
await createAndDelegateStake(TestWorld.STAKE_ACCOUNT_TO_WITHDRAW, votePubkey)

Expand Down

0 comments on commit bf799ef

Please sign in to comment.