Skip to content

Commit

Permalink
fix: don't increment code ID in e2e before running (#3635)
Browse files Browse the repository at this point in the history
* dont increment code ID

* Update tests/e2e/e2e_test.go

Co-authored-by: Roman <roman@osmosis.team>

Co-authored-by: Roman <roman@osmosis.team>
  • Loading branch information
czarcas7ic and p0mvn authored Dec 6, 2022
1 parent fc95a75 commit 08a9aa1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ func copyFile(a, b string) error {
}

func (s *IntegrationTestSuite) TestIBCTokenTransferRateLimiting() {

// TODO: need to upload the contract in setup for this test to work.
s.T().Skip("Skipping IBC rate limiting tests")

if s.skipIBC {
s.T().Skip("Skipping IBC tests")
}
Expand Down Expand Up @@ -165,10 +161,9 @@ func (s *IntegrationTestSuite) TestIBCTokenTransferRateLimiting() {
fmt.Println(wd, projectDir)
err = copyFile(projectDir+"/x/ibc-rate-limit/bytecode/rate_limiter.wasm", wd+"/scripts/rate_limiter.wasm")
s.NoError(err)
// set LatestCodeId to 1 since we upload a contract in the upgrade handler for v13
chainA.LatestCodeId = 1

node.StoreWasmCode("rate_limiter.wasm", initialization.ValidatorWalletName)
chainA.LatestCodeId += 1
chainA.LatestCodeId = 1
node.InstantiateWasmContract(
strconv.Itoa(chainA.LatestCodeId),
fmt.Sprintf(`{"gov_module": "%s", "ibc_module": "%s", "paths": [{"channel_id": "channel-0", "denom": "%s", "quotas": [{"name":"testQuota", "duration": 86400, "send_recv": [1, 1]}] } ] }`, node.PublicAddress, node.PublicAddress, initialization.OsmoToken.Denom),
Expand Down

0 comments on commit 08a9aa1

Please sign in to comment.