Skip to content

Commit

Permalink
Merge pull request #276 from vishesh92/decrease-toxi-sleep
Browse files Browse the repository at this point in the history
e2e: Decrease network interruption time for toxiproxy test
  • Loading branch information
k8s-ci-robot authored Jun 19, 2023
2 parents ff094da + a30277f commit 19d0d41
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 19d0d41

Please sign in to comment.