- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestUntil (0.08 sec)
-
pkg/sleep/sleep_test.go
// See the License for the specific language governing permissions and // limitations under the License. package sleep import ( "testing" "time" "istio.io/istio/pkg/test/util/assert" ) func TestUntil(t *testing.T) { c := make(chan struct{}) assert.Equal(t, Until(c, time.Millisecond), true) go func() { time.Sleep(time.Millisecond * 50) close(c) }() assert.Equal(t, Until(c, time.Minute), false)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 07 14:36:37 UTC 2022 - 895 bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go
"errors" "fmt" "math/rand" "sync" "sync/atomic" "testing" "time" "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/utils/clock" testingclock "k8s.io/utils/clock/testing" ) func TestUntil(t *testing.T) { ch := make(chan struct{}) close(ch) Until(func() { t.Fatal("should not have been invoked") }, 0, ch) ch = make(chan struct{}) called := make(chan struct{}) go func() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 41.1K bytes - Viewed (0)