Skip to content

Commit

Permalink
fix: solana updater localnet version (#881)
Browse files Browse the repository at this point in the history
* fix: solana updater localnet version

* add nix dependency + fix flaky test
  • Loading branch information
aalu1418 authored Oct 8, 2024
1 parent 3f52bbc commit c8fd9f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
go-version-file: "go.mod"
check-latest: true
cache: true
- uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # nix:v2.24.6
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run changes
id: run
run: ${{ inputs.run }}
Expand Down
1 change: 1 addition & 0 deletions pkg/solana/txm/txm_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ func TestTxm_Enqueue(t *testing.T) {
cfg := config.NewDefault()
mc := mocks.NewReaderWriter(t)
mc.On("SendTx", mock.Anything, mock.Anything).Return(solana.Signature{}, nil).Maybe()
mc.On("SimulateTx", mock.Anything, mock.Anything, mock.Anything).Return(&rpc.SimulateTransactionResult{}, nil).Maybe()
ctx := tests.Context(t)

// mock solana keystore
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-solana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ else
cd integration-tests
sed -i -e "s~$testVersion~$latestVersion~" testconfig/default.toml
cd ..
sed -i -e "s~$containerVersion~$latestContainer~" scripts/setup-localnet/localnet.sh
sed -i -e "s~$localnetVersion~$latestLocalnet~" scripts/setup-localnet/localnet.sh
sed -i -e "s~$nixVersion~$latestNix~" solana.nix
fi

Expand Down

0 comments on commit c8fd9f6

Please sign in to comment.