Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: Decrease network interruption time for toxiproxy test #276

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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