Skip to content

Commit b4600b2

Browse files
committed
if networkid is 0 still return fuji timeout
1 parent 8999b67 commit b4600b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmd/control/control.go

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ func startFunc(*cobra.Command, []string) error {
323323
if fuji {
324324
networkID = avagoConstants.FujiID
325325
requestTimeout = 5 * time.Hour // increase timeout for fuji network
326+
ux.Print(log, logging.Yellow.Wrap("setting request timeout to "+requestTimeout.String()))
326327
}
327328
opts := []client.OpOption{
328329
client.WithNumNodes(numNodes),

server/network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ func (lc *localNetwork) Stop(ctx context.Context) {
849849
}
850850

851851
func (lc *localNetwork) GetWaitForHealthyTimeout() time.Duration {
852-
if lc.networkID == avago_constants.FujiID {
852+
if lc.networkID == avago_constants.FujiID || lc.networkID == 0 {
853853
return 6 * time.Hour
854854
} else {
855855
return 3 * time.Minute

0 commit comments

Comments
 (0)