Skip to content

Commit

Permalink
Configured orderer's backoff for the gateway tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <pfi79@mail.ru>
  • Loading branch information
pfi79 committed Jan 16, 2024
1 parent 744f6b7 commit e8c9a9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration/gateway/gateway_bft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ var _ = Describe("GatewayService with BFT ordering service", func() {

ordererProcesses = make(map[string]ifrit.Process)
for _, orderer := range network.Orderers {
runner := network.OrdererRunner(orderer)
runner := network.OrdererRunner(orderer,
"ORDERER_GENERAL_BACKOFF_MAXDELAY=20s")
proc := ifrit.Invoke(runner)
ordererProcesses[orderer.Name] = proc
Eventually(proc.Ready(), network.EventuallyTimeout).Should(BeClosed())
Expand Down Expand Up @@ -172,7 +173,8 @@ var _ = Describe("GatewayService with BFT ordering service", func() {
Eventually(peerGinkgoRunner[0].Err(), network.EventuallyTimeout, time.Second).Should(gbytes.Say(lastDateTime))

By("Restarting orderer2")
runner := network.OrdererRunner(network.Orderers[1])
runner := network.OrdererRunner(network.Orderers[1],
"ORDERER_GENERAL_BACKOFF_MAXDELAY=20s")
ordererProcesses["orderer2"] = ifrit.Invoke(runner)
Eventually(ordererProcesses["orderer2"].Ready(), network.EventuallyTimeout).Should(BeClosed())
// wait peer conecting to orderer2
Expand Down

0 comments on commit e8c9a9a

Please sign in to comment.