Skip to content

Commit

Permalink
Decrease network interruption time for toxiproxy test
Browse files Browse the repository at this point in the history
  • Loading branch information
vishesh92 committed Jun 16, 2023
1 parent ff094da commit a30277f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/network_interruption_toxi.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ func NetworkInterruptionToxiSpec(ctx context.Context, inputGetter func() CommonS
}

func networkInterruptor(toxiProxyContext *toxiproxy.Context, shutdownChannel chan bool) {
for {
for {
// Wait for ApplyClusterTemplateAndWait() to make some progress
helpers.InterruptibleSleep(15*time.Second, time.Second, shutdownChannel)

// Disable communications to ACS
toxiProxyContext.Disable()

// Leave the network disabled for some period of time
helpers.InterruptibleSleep(30*time.Second, time.Second, shutdownChannel)
helpers.InterruptibleSleep(15*time.Second, time.Second, shutdownChannel)

// Restore communications to ACS
toxiProxyContext.Enable()
Expand Down

0 comments on commit a30277f

Please sign in to comment.