chore: port web3.js to solana-test-validator

This commit is contained in:
Michael Vines
2020-12-15 13:24:28 -08:00
committed by mergify[bot]
parent efc091e28a
commit fd7d2f82ae
12 changed files with 373 additions and 131 deletions

View File

@ -1388,8 +1388,8 @@ test('get supply', async () => {
const supply = (await connection.getSupply()).value;
expect(supply.total).toBeGreaterThan(0);
expect(supply.circulating).toBeGreaterThan(0);
expect(supply.nonCirculating).toBeGreaterThan(0);
expect(supply.nonCirculatingAccounts.length).toBeGreaterThan(0);
expect(supply.nonCirculating).toBeGreaterThanOrEqual(0);
expect(supply.nonCirculatingAccounts.length).toBeGreaterThanOrEqual(0);
});
test('get performance samples', async () => {

View File

@ -3,5 +3,5 @@ set -ex
cd "$(dirname "$0")"
../../../examples/bpf-rust-noop/do.sh build
cp ../../../examples/bpf-rust-noop/target/bpfel-unknown-unknown/release/solana_bpf_rust_noop.so .
cargo build-bpf --manifest-path=../../../examples/bpf-rust-noop/Cargo.toml
cp ../../../examples/bpf-rust-noop/target/deploy/solana_bpf_rust_noop.so .