Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,214 for Did (0.37 sec)

  1. cmd/site-replication-metrics.go

    	Endpoint string `json:"-"`
    	// Secure is true if the replication target endpoint is secure
    	Secure bool `json:"-"`
    }
    
    func (sr *SRStats) update(st replStat, dID string) {
    	sr.lock.Lock()
    	defer sr.lock.Unlock()
    	srs, ok := sr.M[dID]
    	if !ok {
    		srs = &SRStatus{
    			XferRateLrg: newXferStats(),
    			XferRateSml: newXferStats(),
    		}
    	}
    	srs.Endpoint = st.Endpoint
    	srs.Secure = st.Secure
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. test/stress/runstress.go

    	if *v {
    		log.Println(a...)
    	}
    }
    
    func dialStress(a net.Addr) {
    	for {
    		d := net.Dialer{Timeout: time.Duration(rand.Intn(1e9))}
    		c, err := d.Dial("tcp", a.String())
    		if err == nil {
    			Println("did dial")
    			go func() {
    				time.Sleep(time.Duration(rand.Intn(500)) * time.Millisecond)
    				c.Close()
    				Println("closed dial")
    			}()
    		}
    		// Don't run out of ephemeral ports too quickly:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. test/fixedbugs/issue59411.go

    			// Partway through iteration, clear the map.
    			clear(m)
    		} else if i > 6 {
    			// If we advance to the next iteration, that's a bug.
    			panic("BAD")
    		}
    		i++
    	}
    	if len(m) != 0 {
    		panic("clear did not empty the map")
    	}
    }
    
    func g() {
    	// Allocate map.
    	m := map[float64]int{}
    	// Fill to just before a growth trigger.
    	const N = 13 << 4 // 6.5 * 2 * 2^k
    	for i := 0; i < N; i++ {
    		m[math.NaN()] = i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 08 05:25:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. pkg/api/testing/meta_test.go

    					m.SetResourceVersion("102030")
    					if m.GetResourceVersion() != "102030" {
    						t.Errorf("%v (%v) did not preserve resource version", gv.WithKind(kind), knownType)
    						continue
    					}
    					labels := map[string]string{"a": "b"}
    					m.SetLabels(labels)
    					if !reflect.DeepEqual(m.GetLabels(), labels) {
    						t.Errorf("%v (%v) did not preserve labels", gv.WithKind(kind), knownType)
    						continue
    					}
    				default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 14 10:11:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. cmd/local-locker_test.go

    			Quorum:    0,
    		}
    		ok, err := l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    		// RLock twice
    		ok, err = l.RLock(ctx, arg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !ok {
    			t.Fatal("did not get write lock")
    		}
    
    		rResources[i] = arg.Resources[0]
    	}
    	if len(l.lockMap) != len(rResources)+len(wResources) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    	t.Log("\n\nREPEAT\n\n")
    
    	tg.run("test", "-x", "-v", "-short", "t/...")
    	tg.grepStdout(`ok  \tt/t1\t\(cached\)`, "did not cache t1")
    	tg.grepStdout(`ok  \tt/t2\t\(cached\)`, "did not cache t2")
    	tg.grepStdout(`ok  \tt/t3\t\(cached\)`, "did not cache t3")
    	tg.grepStdout(`ok  \tt/t4\t\(cached\)`, "did not cache t4")
    	tg.grepStderrNot(`[\\/](compile|gccgo) `, "incorrectly ran compiler")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testcarchive/testdata/main_unix.c

    		perror("sigaction");
    		return 2;
    	}
    	if (osa.sa_handler == SIG_DFL) {
    		fprintf(stderr, "Go runtime did not install signal handler\n");
    		return 2;
    	}
    	// gccgo does not set SA_ONSTACK for SIGSEGV.
    	if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) {
    		fprintf(stderr, "Go runtime did not install signal handler\n");
    		return 2;
    	}
    	oldHandler = osa.sa_sigaction;
    
    	return 0;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. pkg/util/goroutinemap/goroutinemap_test.go

    	// Act
    	err2 := grm.Run(operationName, operation2)
    
    	// Assert
    	if err2 == nil {
    		t.Fatalf("NewGoRoutine did not fail. Expected: <Failed to create operation with name \"%s\". An operation with that name already exists.> Actual: <no error>", operationName)
    	}
    	if !IsAlreadyExists(err2) {
    		t.Fatalf("NewGoRoutine did not return alreadyExistsError, got: %v", err2)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  9. src/internal/trace/order_test.go

    				t.Fatalf("check %q: expected value %d after on pop %d, got %d", name, want, i+1, got)
    			}
    		}
    		if _, ok := q.pop(); ok {
    			t.Fatalf("check %q: did not expect to be able to pop more values", name)
    		}
    		if _, ok := q.pop(); ok {
    			t.Fatalf("check %q: did not expect to be able to pop more values a second time", name)
    		}
    	}
    	check("one element", []int{4})
    	check("two elements", []int{64, 12})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewrite_test.go

    package ssa
    
    import "testing"
    
    // We generate memmove for copy(x[1:], x[:]), however we may change it to OpMove,
    // because size is known. Check that OpMove is alias-safe, or we did call memmove.
    func TestMove(t *testing.T) {
    	x := [...]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40}
    	copy(x[1:], x[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 21:57:02 UTC 2021
    - 6.9K bytes
    - Viewed (0)
Back to top