Skip to content

Commit

Permalink
chore: add network and more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Jul 26, 2024
1 parent 6416879 commit f403631
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/e2e/configurer/chain/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,17 @@ func (n *NodeConfig) Run() error {
// This fails if unsuccessful.
_, err := n.QueryCurrentHeight()
if err != nil {
st, _ := n.rpcClient.Status(context.Background())
n.t.Logf("failed to query current height, status %+v: %s", st, err.Error())
st, errRpc := n.rpcClient.Status(context.Background())
n.t.Logf("failed to query current height, status %+v: %s", st)

Check failure on line 72 in test/e2e/configurer/chain/node.go

View workflow job for this annotation

GitHub Actions / lint_test / integration-tests

(*testing.common).Logf format %s reads arg #2, but call has 1 arg

Check failure on line 72 in test/e2e/configurer/chain/node.go

View workflow job for this annotation

GitHub Actions / lint_test / lint

printf: (*testing.common).Logf format %s reads arg #2, but call has 1 arg (govet)

Check failure on line 72 in test/e2e/configurer/chain/node.go

View workflow job for this annotation

GitHub Actions / lint_test / unit-tests

(*testing.common).Logf format %s reads arg #2, but call has 1 arg
if errRpc != nil {
n.t.Logf("errRpc: %s", errRpc.Error())
}

stnode, errNode := n.Status()
n.t.Logf("failed to query current height, status node %+v: %s", stnode, err.Error())
if errNode != nil {
n.t.Logf("errNode: %s", errNode.Error())
}
return false
}
n.t.Logf("started node container: %s", n.Name)
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/containers/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,14 @@ func (m *Manager) RunNodeResource(chainId string, containerName, valCondifDir st
Name: containerName,
Repository: m.CurrentRepository,
NetworkID: m.network.Network.ID,
Networks: []*dockertest.Network{m.network},
User: "root:root",
Entrypoint: []string{
"sh",
"-c",
"babylond start " + FlagHome,
},
// TODO: verify if exposed ports need to be dinamic, since e2e might run in parallel
ExposedPorts: []string{"26656", "26657", "1317", "9090"},
Mounts: []string{
fmt.Sprintf("%s/:%s", valCondifDir, BabylonHomePath),
Expand Down

0 comments on commit f403631

Please sign in to comment.