Skip to content

Commit

Permalink
address roman comments
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed May 5, 2022
1 parent 5e9feb5 commit aaf0855
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/e2e_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,14 +349,14 @@ func (s *IntegrationTestSuite) initUpgrade() {
// wait till all chains halt at upgrade height
for _, chain := range s.chains {
for i := range chain.Validators {
s.T().Logf("waiting to reach upgrade height for chain-id: %s", chain.ChainMeta.Id)
s.T().Logf("waiting to reach upgrade height on %s validator container: %s", chain.ChainMeta.Id, s.valResources[chain.ChainMeta.Id][i].Container.ID)
s.Require().Eventually(
func() bool {
out := s.chainStatus(chain, i)
out := s.chainStatus(s.valResources[chain.ChainMeta.Id][i].Container.ID)
var syncInfo syncInfo
json.Unmarshal(out, &syncInfo)
if syncInfo.SyncInfo.LatestHeight != "75" {
fmt.Printf("current block height is %v, waiting for block 75\n", syncInfo.SyncInfo.LatestHeight)
s.T().Logf("current block height is %v, waiting for block 75 container: %s", syncInfo.SyncInfo.LatestHeight, s.valResources[chain.ChainMeta.Id][i].Container.ID)
}
return syncInfo.SyncInfo.LatestHeight == "75"
},
Expand Down Expand Up @@ -403,7 +403,7 @@ func (s *IntegrationTestSuite) upgrade() {
for i := range chain.Validators {
s.Require().Eventually(
func() bool {
out := s.chainStatus(chain, i)
out := s.chainStatus(s.valResources[chain.ChainMeta.Id][i].Container.ID)
var syncInfo syncInfo
json.Unmarshal(out, &syncInfo)
if syncInfo.SyncInfo.LatestHeight <= "75" {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/osmosis-labs/osmosis/v7/tests/e2e/util"
)

func (s *IntegrationTestSuite) Test1IBCTokenTransfer() {
func (s *IntegrationTestSuite) Test001IBCTokenTransfer() {
var ibcStakeDenom string

s.Run("send_uosmo_to_chainB", func() {
Expand Down Expand Up @@ -52,7 +52,7 @@ func (s *IntegrationTestSuite) Test1IBCTokenTransfer() {
})
}

func (s *IntegrationTestSuite) Test2QueryBalances() {
func (s *IntegrationTestSuite) Test002QueryBalances() {
var (
expectedDenomsA = []string{chain.OsmoDenom, chain.StakeDenom}
expectedDenomsB = []string{chain.OsmoDenom, chain.StakeDenom, chain.IbcDenom}
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/e2e_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ func (s *IntegrationTestSuite) voteProposal(c *chain.Chain) {

}

func (s *IntegrationTestSuite) chainStatus(c *chain.Chain, i int) []byte {
func (s *IntegrationTestSuite) chainStatus(containerId string) []byte {
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

exec, err := s.dkrPool.Client.CreateExec(docker.CreateExecOptions{
Context: ctx,
AttachStdout: true,
AttachStderr: true,
Container: s.valResources[c.ChainMeta.Id][i].Container.ID,
Container: containerId,
User: "root",
Cmd: []string{
"osmosisd", "status",
Expand Down

0 comments on commit aaf0855

Please sign in to comment.