- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,669 for done2 (0.06 sec)
-
pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go
st.MakeNode().Name("node-b").Label("zone", "zone1").Label(v1.LabelHostname, "node-b").Obj(), st.MakeNode().Name("node-x").Label("zone", "zone2").Label(v1.LabelHostname, "node-x").Obj(), }, failedNodes: []*v1.Node{ st.MakeNode().Name("node-y").Label("zone", "zone2").Label(v1.LabelHostname, "node-y").Obj(), }, want: []framework.NodeScore{ {Name: "node-a", Score: 75}, {Name: "node-b", Score: 75},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 60K bytes - Viewed (0) -
src/net/http/responsecontroller_test.go
} func testResponseControllerSetPastReadDeadline(t *testing.T, mode testMode) { readc := make(chan struct{}) donec := make(chan struct{}) cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { defer close(donec) ctl := NewResponseController(w) b := make([]byte, 3) n, err := io.ReadFull(r.Body, b) b = b[:n] if err != nil || string(b) != "one" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 19:20:31 UTC 2024 - 10.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
}, want: &preFilterState{ Constraints: []topologySpreadConstraint{zoneConstraint}, TpKeyToDomainsNum: map[string]int{"zone": 2}, TpKeyToCriticalPaths: map[string]*criticalPaths{ "zone": {{"zone1", 1}, {"zone2", 2}}, }, TpPairToMatchNum: map[topologyPair]int{ {key: "zone", value: "zone1"}: 1, {key: "zone", value: "zone2"}: 2,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 143.1K bytes - Viewed (0) -
src/runtime/race/testdata/waitgroup_test.go
runtime.Gosched() x = 1 wg.Done() c <- true }() go func() { wg.Add(1) runtime.Gosched() x = 2 wg.Done() c <- true }() wg.Wait() <-c <-c } func TestRaceWaitGroupWrongAdd(t *testing.T) { c := make(chan bool, 2) var wg sync.WaitGroup go func() { wg.Add(1) time.Sleep(100 * time.Millisecond) wg.Done() c <- true }() go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 03 22:09:38 UTC 2017 - 5.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go
b.current = next } b.current = body b.typeCaseBody(cc, done) b.current = next } if default_ != nil { b.typeCaseBody(default_, done) } else { b.jump(done) } b.current = done } func (b *builder) typeCaseBody(cc *ast.CaseClause, done *Block) { b.targets = &targets{ tail: b.targets, _break: done, } b.stmtList(cc.Body) b.targets = b.targets.tail
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 11.4K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/dupLoad_test.go
func main1(t *testing.T) { const N = 100000 done := make(chan bool, 2) b := make([]byte, 2) go func() { for i := 0; i < N; i++ { b[0] = byte(i) b[1] = byte(i) } done <- true }() go func() { for i := 0; i < N; i++ { x, y := read1(b) if byte(x) != byte(y) { t.Errorf("x=%x y=%x\n", x, y) done <- false return } } done <- true }() <-done <-done }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.5K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/futile-wakeup.go
c1 := make(chan int, 1) c2 := make(chan int, 1) const procs = 2 var done sync.WaitGroup done.Add(4 * procs) for p := 0; p < procs; p++ { const iters = 1e3 go func() { trace.WithRegion(context.Background(), "special", func() { for i := 0; i < iters; i++ { runtime.Gosched() c0 <- 0 } done.Done() }) }() go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/race/testdata/chan_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java
crawlerStatsHelper.done(key); logger.info(localLogMsg.get()); String[] values = localLogMsg.get().split("\t"); assertEquals(3, values.length); assertEquals("url:test", values[0]); assertTrue(values[1].startsWith("time:")); assertTrue(values[2].startsWith("done:")); localLogMsg.remove(); crawlerStatsHelper.done(key); assertNull(localLogMsg.get());
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 6K bytes - Viewed (0) -
test/chan/doubleselect.go
c1 := make(chan int) c2 := make(chan int) c3 := make(chan int) c4 := make(chan int) done := make(chan bool) cmux := make(chan int) go sender(*iterations, c1, c2, c3, c4) go mux(cmux, c1, done) go mux(cmux, c2, done) go mux(cmux, c3, done) go mux(cmux, c4, done) go func() { <-done <-done <-done <-done close(cmux) }() // We keep the recver because it might catch more bugs in the future.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 24 01:34:14 UTC 2017 - 2K bytes - Viewed (0)