Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Feb 8, 2024
1 parent 0f2b517 commit fe04297
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,22 @@ jobs:
shell: bash

# Build IDLs
- name: Build validator-history
- name: Build validator_history IDL
run: anchor build --idl idl --program-name validator_history

# Make sure no uncommitted changes
- name: Check for diff
run: git diff --exit-code

- name: Build validator_history anchor to be used as SBF program in tests
run: anchor build

- name: cargo test
run: RUST_LOG=debug cargo test --all-targets --all-features --color auto
shell: bash
env:
RUST_LOG: debug
SBF_OUT_DIR: target/deploy

verified-build:
name: Build Verifiable Artifact
Expand Down
5 changes: 0 additions & 5 deletions test

This file was deleted.

12 changes: 2 additions & 10 deletions tests/src/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,8 @@ impl TestFixture {

// prefer bpf on this to not run as a built-in program with actual runtime limitations
// make sure the program is compiled and SBF_OUT_DIR is set correctly when running this!
let mut program = ProgramTest::new(
"validator_history",
validator_history::ID,
None
);
program.add_program(
"jito_tip_distribution",
jito_tip_distribution::id(),
None
);
let mut program = ProgramTest::new("validator_history", validator_history::ID, None);
program.add_program("jito_tip_distribution", jito_tip_distribution::id(), None);

let epoch = 0;
let vote_account = Pubkey::new_unique();
Expand Down

0 comments on commit fe04297

Please sign in to comment.