Skip to content

Commit

Permalink
chore: fix system test for v2 (#23328)
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 authored Jan 14, 2025
1 parent 1c9159d commit 69defb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/v2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
- name: system tests v2
if: env.GIT_DIFF
run: |
COSMOS_BUILD_OPTIONS=v2 make test-system
make test-system
- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ test-all: test-unit test-integration test-ledger-mock test-race
.PHONY: test-system
test-system: build
mkdir -p ./tests/systemtests/binaries/
cp $(BUILDDIR)/simd$(if $(findstring v2,$(COSMOS_BUILD_OPTIONS)),v2) ./tests/systemtests/binaries/
$(MAKE) -C tests/systemtests test
cp $(BUILDDIR)/simdv2 ./tests/systemtests/binaries/
COSMOS_BUILD_OPTIONS=v2 $(MAKE) -C tests/systemtests test


TEST_PACKAGES=./...
Expand Down
2 changes: 1 addition & 1 deletion tests/systemtests/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func TestGetTxEvents_GRPCGateway(t *testing.T) {
} else {
require.NoError(t, err)
txs := gjson.Get(string(res), "txs").Array()
require.Equal(t, len(txs), tc.expLen)
require.Equal(t, tc.expLen, len(txs))
}
})
}
Expand Down

0 comments on commit 69defb4

Please sign in to comment.