Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for testclock (0.15 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceProjectLockTest.groovy

                        workerLeaseService.withLocks([projectLock]) {
                            assert testLock.tryLock()
                            try {
                                assert lockIsHeld(projectLock)
                            } finally {
                                testLock.unlock()
                            }
                        }
                    }
                }
                started.await()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 16:29:26 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/leaderelection_test.go

    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/fake"
    	k8stesting "k8s.io/client-go/testing"
    
    	"istio.io/istio/pkg/revisions"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const testLock = "test-lock"
    
    func createElection(t *testing.T,
    	name string, revision string,
    	watcher revisions.DefaultWatcher,
    	expectLeader bool,
    	client kubernetes.Interface, fns ...func(stop <-chan struct{}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    		testFnc any // testHeader | testWrite | testReadFrom | testClose
    	)
    
    	vectors := []struct {
    		file  string // Optional filename of expected output
    		tests []testFnc
    	}{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

            }, receivingFileLockContentionHandler)
            receivingSocket = receivingFileLockContentionHandler.communicator.socket
            receivingLock = fileLockManager.lock(file("locks/testlock"), DefaultLockOptions.mode(FileLockManager.LockMode.Exclusive), "testlock", "test holding lock", whenContended)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/compress/flate/huffman_bit_writer_test.go

    	for _, test := range writeBlockTests {
    		testBlock(t, test, "wb")
    	}
    }
    
    // TestWriteBlockDynamic tests if the writeBlockDynamic encoding has changed.
    // To update the reference files use the "-update" flag on the test.
    func TestWriteBlockDynamic(t *testing.T) {
    	for _, test := range writeBlockTests {
    		testBlock(t, test, "dyn")
    	}
    }
    
    // testBlock tests a block against its references,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 40.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go

    `,
    		},
    	}
    	for tn, tc := range testcases {
    
    		t.Run(tn, func(t *testing.T) {
    			metrics.Metrics.Reset()
    			metrics.Metrics.SetClock(testingclock.NewFakeClock(time.Now()))
    			d := dialerCreator{
    				connector: &fakeProxyServerConnector{
    					connectorErr: tc.connectorErr,
    					proxierErr:   tc.proxierErr,
    				},
    				options: metricsOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 22:41:29 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. src/text/template/multi_test.go

    const (
    	cloneText1 = `{{define "a"}}{{template "b"}}{{template "c"}}{{end}}`
    	cloneText2 = `{{define "b"}}b{{end}}`
    	cloneText3 = `{{define "c"}}root{{end}}`
    	cloneText4 = `{{define "c"}}clone{{end}}`
    )
    
    func TestClone(t *testing.T) {
    	// Create some templates and clone the root.
    	root, err := New("root").Parse(cloneText1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = root.Parse(cloneText2)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  8. src/go/types/check_test.go

    	const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32)
    	testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, false, withSizes(&StdSizes{4, 4}))
    }
    
    func TestCheck(t *testing.T) {
    	old := buildcfg.Experiment.RangeFunc
    	defer func() {
    		buildcfg.Experiment.RangeFunc = old
    	}()
    	buildcfg.Experiment.RangeFunc = true
    
    	DefPredeclaredTestFuncs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/check_test.go

    	const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32)
    	testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, 0, false, withSizes(&StdSizes{4, 4}))
    }
    
    func TestCheck(t *testing.T) {
    	old := buildcfg.Experiment.RangeFunc
    	defer func() {
    		buildcfg.Experiment.RangeFunc = old
    	}()
    	buildcfg.Experiment.RangeFunc = true
    
    	DefPredeclaredTestFuncs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. pkg/slices/slices_test.go

    			result := Reverse(tc.input)
    			if diff := cmp2.Diff(tc.expected, result); diff != "" {
    				t.Errorf("Reverse() mismatch (-want +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestClone(t *testing.T) {
    	tests := []struct {
    		name  string
    		slice []interface{}
    	}{
    		{
    			name:  "Empty",
    			slice: []interface{}{},
    		},
    		{
    			name:  "Single Element",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top