Skip to content

Commit 19d0d41

Browse files
authored
Merge pull request #276 from vishesh92/decrease-toxi-sleep
e2e: Decrease network interruption time for toxiproxy test
2 parents ff094da + a30277f commit 19d0d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/network_interruption_toxi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ func NetworkInterruptionToxiSpec(ctx context.Context, inputGetter func() CommonS
127127
}
128128

129129
func networkInterruptor(toxiProxyContext *toxiproxy.Context, shutdownChannel chan bool) {
130-
for {
130+
for {
131131
// Wait for ApplyClusterTemplateAndWait() to make some progress
132132
helpers.InterruptibleSleep(15*time.Second, time.Second, shutdownChannel)
133133

134134
// Disable communications to ACS
135135
toxiProxyContext.Disable()
136136

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

140140
// Restore communications to ACS
141141
toxiProxyContext.Enable()

0 commit comments

Comments
 (0)