mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-10 14:38:18 -05:00
fix(integration-test): fixtestStartProcess (#193)
This commit is contained in:
@@ -28,20 +28,19 @@ func testStartProcess(t *testing.T) {
|
||||
|
||||
// Start bridge process.
|
||||
bridgeCmd := runBridgeApp(t)
|
||||
bridgeCmd.ExpectWithTimeout(true, time.Second*10, "Start bridge successfully")
|
||||
bridgeCmd.RunApp(true)
|
||||
bridgeCmd.ExpectWithTimeout(false, time.Second*10, "Start bridge successfully")
|
||||
|
||||
// Start coordinator process.
|
||||
coordinatorCmd := runCoordinatorApp(t, "--ws", "--ws.port", "8391")
|
||||
coordinatorCmd.ExpectWithTimeout(true, time.Second*10, "Start coordinator successfully")
|
||||
coordinatorCmd.RunApp(true)
|
||||
coordinatorCmd.ExpectWithTimeout(false, time.Second*10, "Start coordinator successfully")
|
||||
|
||||
// Start roller process.
|
||||
rollerCmd := runRollerApp(t)
|
||||
rollerCmd.ExpectWithTimeout(true, time.Second*20, "roller start successfully")
|
||||
rollerCmd.ExpectWithTimeout(true, time.Second*30, "register to coordinator successfully!")
|
||||
rollerCmd.RunApp(true)
|
||||
// rollerCmd.ExpectWithTimeout(false, time.Second*20, "roller start successfully")
|
||||
// rollerCmd.ExpectWithTimeout(false, time.Second*10, "register to coordinator successfully!")
|
||||
rollerCmd.ExpectWithTimeout(false, time.Second*30, "register to coordinator successfully!")
|
||||
|
||||
rollerCmd.WaitExit()
|
||||
bridgeCmd.WaitExit()
|
||||
|
||||
Reference in New Issue
Block a user