Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jul 13, 2023
1 parent ee1f941 commit 0fc2374
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ cover-html: test-unit-cover

# we should be able to optimize docker build:
# https://linear.app/umee/issue/UMEE-463/fix-docker-login-problem-when-running-e2e-tests
test-e2e: #$(TEST_E2E_DEPS)
test-e2e: $(TEST_E2E_DEPS)
go test ./tests/e2e/... -mod=readonly -timeout 30m -race -v -tags='$(TEST_E2E_TAGS)'

test-e2e-cov: $(TEST_E2E_DEPS)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/docker/gaia.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.20-alpine
ARG GAIA_VERSION=v5.0.7
ARG GAIA_VERSION=v10.0.2

ENV PACKAGES curl make git libc-dev bash gcc linux-headers
RUN apk add --no-cache $PACKAGES
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/e2e_ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"time"

"cosmossdk.io/math"

sdk "github.com/cosmos/cosmos-sdk/types"

appparams "github.com/umee-network/umee/v5/app/params"
Expand Down Expand Up @@ -190,7 +191,6 @@ func (s *E2ETest) TestIBCTokenTransfer() {
// resend the umee token from gaia to umee
s.SendIBC(setup.GaiaChainID, s.Chain.ID, "", sdk.NewInt64Coin(umeeIBCHash, token.Amount.Int64()))
s.checkSupply(gaiaAPIEndpoint, umeeIBCHash, sdk.ZeroInt())

})

// IBC inbound transfer of non x/leverage registered tokens must fail, because
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (s *E2ETestSuite) SetupSuite() {
s.initValidatorConfigs()
s.runValidators()
if !s.MinNetwork {
// s.runPriceFeeder()
s.runPriceFeeder()
s.runGaiaNetwork()
s.runIBCRelayer()
} else {
Expand Down Expand Up @@ -342,6 +342,7 @@ func (s *E2ETestSuite) initValidatorConfigs() {

appConfig := srvconfig.DefaultConfig()
appConfig.API.Enable = true
appConfig.API.Address = "tcp://0.0.0.0:1317"
appConfig.MinGasPrices = minGasPrice
appConfig.GRPC.Address = "0.0.0.0:9090"

Expand Down Expand Up @@ -739,7 +740,7 @@ func (s *E2ETestSuite) connectIBCChains() {

s.Require().Containsf(
errBuf.String(),
"successfully opened init channel",
"connection handshake already finished for Connection",
"failed to connect chains via IBC: %s", errBuf.String(),
)

Expand Down
11 changes: 5 additions & 6 deletions tests/e2e/setup/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@ func (s *E2ETestSuite) SendIBC(srcChainID, dstChainID, recipient string, token s
cmd := []string{
"hermes",
"tx",
"raw",
"ft-transfer",
dstChainID,
srcChainID,
"transfer", // source chain port ID
"channel-0", // since only one connection/channel exists, assume 0
token.Amount.String(),
"--dst-chain=" + dstChainID,
"--src-chain=" + srcChainID,
"--src-port=transfer", // source chain port ID
"--src-channel=channel-0", // since only one connection/channel exists, assume 0
"--amount=" + token.Amount.String(),
fmt.Sprintf("--denom=%s", token.Denom),
"--timeout-height-offset=1000",
}
Expand Down

0 comments on commit 0fc2374

Please sign in to comment.