Skip to content

Commit 8af3cb9

Browse files
committed
Fix compose and e2e tests
1 parent 58c1635 commit 8af3cb9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/antithesis/compose.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func GenerateComposeConfig(network *tmpnet.Network, baseImageName string, runtim
6565
network.DefaultRuntimeConfig = tmpnet.NodeRuntimeConfig{
6666
AvalancheGoPath: avalancheGoPath,
6767
}
68+
// TODO(marun) Need to have a standard way of initializing a network
69+
if network.DefaultFlags == nil {
70+
network.DefaultFlags = make(map[string]string)
71+
}
6872
network.DefaultFlags[config.PluginDirKey] = pluginDir
6973

7074
if err := initBootstrapDB(network, bootstrapVolumePath); err != nil {

tests/fixture/tmpnet/node_process.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ func (p *NodeProcess) IsHealthy(ctx context.Context) (bool, error) {
220220
if errors.Is(ErrUnrecoverableNodeHealthCheck, err) {
221221
return false, err
222222
}
223+
if err != nil {
224+
p.node.getNetwork().Log.Debug("failed to check node health",
225+
zap.Stringer("nodeID", p.node.NodeID),
226+
zap.Error(err),
227+
)
228+
return false, nil
229+
}
223230
return healthReply.Healthy, nil
224231
}
225232

0 commit comments

Comments
 (0)