- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for flaky (0.28 sec)
-
bin/retry.sh
# retry.sh retries a command until it succeeds. It accepts a regex pattern to match failures on to # determine if a retry should be attempted. # Example: retry.sh "connection timed out" ./my-flaky-script.sh some args # This will run "my-flaky-script.sh", retrying any failed runs that output "connection timed out" up # to 5 times. function fail { echo "${1}" >&2 exit 1 } function isatty() { if [ -t 1 ] ; then
Shell Script - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jun 11 16:08:08 GMT 2021 - 2K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_test.go
sent := m.Payload.(*zdsapi.WorkloadRequest_SnapshotSent).SnapshotSent if sent == nil { panic("expected snapshot sent") } sendAck(ztunClient) ztunClient.Close() // this will retry for a bit, so shouldn't flake mt.Assert(ztunnelConnected.Name(), nil, monitortest.Exactly(0)) } func TestZtunnelRemovePod(t *testing.T) { ztunnelKeepAliveCheckInterval = time.Second / 10 mt := monitortest.New(t) setupLogging()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 8.6K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
assert.NoError(t, err) fakeIPSetDeps.AssertExpectations(t) } // for tests that call `runtime.GC()` - we have no control over when the GC is actually scheduled, // and it is flake-prone to check for closure after calling it, this retries for a bit to make // sure the netns is closed eventually. func assertNSClosed(t *testing.T, closed *atomic.Bool) { for i := 0; i < 5; i++ { if closed.Load() {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
// // Note that SortedList is used here because the istio sets class has no order guarantees, // and our unit tests will flake if rules have a nondeterministic ordering. // CLI: -t mangle -A ISTIO_PRERT -s 169.254.7.127 -p tcp -m tcp --dport <PROBEPORT> -j ACCEPT //
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue May 07 19:54:50 GMT 2024 - 19.7K bytes - Viewed (0)