Skip to content

Commit fe92a3f

Browse files
committed
Fix more failing tests
1 parent b7b62a9 commit fe92a3f

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
- uses: taiki-e/install-action@nextest
171171
- run: cargo nextest run --all-features -E 'not test(ledger_utils::tests)'
172172
env:
173-
SBF_OUT_DIR: ${{ github.workspace }}/integration_tests/tests/fixtures
173+
SBPF_OUT_DIR: ${{ github.workspace }}/integration_tests/tests/fixtures
174174

175175
# create_release:
176176
# name: Create Release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
1. Set up test-ledger: `./tip-router-operator-cli/scripts/setup-test-ledger.sh`
88
2. Build the tip router program: `cargo build-sbf --manifest-path program/Cargo.toml --sbf-out-dir integration_tests/tests/fixtures`
9-
3. Run tests: `SBF_OUT_DIR=integration_tests/tests/fixtures cargo test`
9+
3. Run tests: `SBPF_OUT_DIR=integration_tests/tests/fixtures cargo nextest run --all-features -E 'not test(ledger_utils::tests)'`
1010

1111
To see more info on the Tip Router CLI check out the [CLI documentation](./cli/README.md)
1212

format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cargo fmt --all
1414

1515
print_executing "cargo nextest run --all-features"
1616
cargo build-sbf --sbf-out-dir integration_tests/tests/fixtures
17-
SBF_OUT_DIR=integration_tests/tests/fixtures cargo nextest run --all-features -E 'not test(ledger_utils::tests::test_get_bank_from_ledger_success)'
17+
SBPF_OUT_DIR=integration_tests/tests/fixtures cargo nextest run --all-features -E 'not test(ledger_utils::tests::test_get_bank_from_ledger_success)'
1818

1919
# Code coverage only runs with flag
2020
if [[ "$*" == *"--code-coverage"* ]]; then
-9.58 MB
Binary file not shown.

pipe_test_output.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use this script, pipe the output of the test command to it.
1818
1919
Examples:
2020
cargo nextest run --all-features -E 'not test(bpf)' |& ./pipe_test_output.sh
21-
cargo build-sbf --sbf-out-dir integration_tests/tests/fixtures && SBF_OUT_DIR=integration_tests/tests/fixtures cargo nextest run jito-tip-router-integration-tests::tests tip_router::simulation_tests::tests::simulation_test |& ./pipe_test_output.sh
21+
cargo build-sbf --sbf-out-dir integration_tests/tests/fixtures && SBPF_OUT_DIR=integration_tests/tests/fixtures cargo nextest run jito-tip-router-integration-tests::tests tip_router::simulation_tests::tests::simulation_test |& ./pipe_test_output.sh
2222
EOF
2323
}
2424

tip-router-operator-cli/src/stake_meta_generator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,10 @@ mod tests {
892892

893893
let mut config_data: [u8; CONFIG_SIZE] = [0u8; CONFIG_SIZE];
894894
let mut config_cursor = std::io::Cursor::new(&mut config_data[..]);
895+
// Write discriminator first
896+
Config::DISCRIMINATOR
897+
.serialize(&mut config_cursor)
898+
.unwrap();
895899
config.serialize(&mut config_cursor).unwrap();
896900
config_account_data.set_data(config_data.to_vec());
897901
account_datas.push((config_pda.0, config_account_data));

0 commit comments

Comments
 (0)