- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestLazySerial (0.41 sec)
-
pkg/lazy/lazy_test.go
package lazy import ( "fmt" "sync" "testing" "go.uber.org/atomic" "istio.io/istio/pkg/log" "istio.io/istio/pkg/slices" "istio.io/istio/pkg/test/util/assert" ) func TestLazySerial(t *testing.T) { t.Run("retry", func(t *testing.T) { computations := atomic.NewInt32(0) l := NewWithRetry(func() (int32, error) { res := computations.Inc() if res > 2 { return res, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 3K bytes - Viewed (0)