Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for testFork (0.27 sec)

  1. 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)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/AbstractDependencyDescriptorFactoryInternalSpec.groovy

    abstract class AbstractDependencyDescriptorFactoryInternalSpec extends Specification {
        static final TEST_DEP_CONF = "depconf1"
    
        static final TEST_EXCLUDE_RULE = new org.gradle.api.internal.artifacts.DefaultExcludeRule("testOrg", null)
        static final TEST_IVY_EXCLUDE_RULE = getTestExcludeRule()
    
        static final ARTIFACT = new DefaultDependencyArtifact("name", "type", "classifier", "ext", null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 19:31:08 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_test.go

    		<-done
    	}
    
    	// Check that the array has been totally cleared.
    	for i, v := range a {
    		if v != 0 {
    			t.Fatalf("a[%v] not cleared: want %#x, got %#x", i, uint32(0), v)
    		}
    	}
    }
    
    func TestOr8(t *testing.T) {
    	// Basic sanity check.
    	x := uint8(0)
    	for i := uint8(0); i < 8; i++ {
    		atomic.Or8(&x, 1<<i)
    		if r := (uint8(1) << (i + 1)) - 1; x != r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K 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. plugin/pkg/admission/resourcequota/admission_test.go

    		if expectedValue != actualValue {
    			t.Errorf("Usage Used: Key: %v, Expected: %v, Actual: %v", k, expectedValue, actualValue)
    		}
    	}
    }
    
    func removeListWatch(in []testcore.Action) []testcore.Action {
    	decimatedActions := []testcore.Action{}
    	// list and watch resource quota is done to maintain our cache, so that's expected.  Remove them from results
    	for i := range in {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    	}
    }
    
    // If -testwork is specified, the test prints the name of the temp directory
    // and does not remove it when done, so that a programmer can
    // poke at the test file tree afterward.
    var testWork = flag.Bool("testwork", false, "")
    
    // cleanup cleans up a test that runs testgo.
    func (tg *testgoData) cleanup() {
    	tg.t.Helper()
    	if *testWork {
    		if tg.tempdir != "" {
    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/go/scriptreadme_test.go

    Note also that in reported output, the actual name of the per-script temporary directory
    has been consistently replaced with the literal string $WORK.
    
    The cmd/go test flag -testwork (which must appear on the "go test" command line after
    standard test flags) causes each test to log the name of its $WORK directory and other
    environment variable settings and also to leave that directory behind when it exits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. src/cmd/go/script_test.go

    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    			StartProxy()
    
    			workdir, err := os.MkdirTemp(testTmpDir, name)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !*testWork {
    				defer removeAll(workdir)
    			}
    
    			s, err := script.NewState(tbContext(ctx, t), workdir, env)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			// Unpack archive.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/README

    Note also that in reported output, the actual name of the per-script temporary directory
    has been consistently replaced with the literal string $WORK.
    
    The cmd/go test flag -testwork (which must appear on the "go test" command line after
    standard test flags) causes each test to log the name of its $WORK directory and other
    environment variable settings and also to leave that directory behind when it exits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    				Clientset: fake.NewSimpleClientset(&v1.PodList{Items: []v1.Pod{*testutil.NewPod("pod0", "node0")}}),
    			},
    			updateReactor: func() func(action testcore.Action) (bool, runtime.Object, error) {
    				i := 0
    				return func(action testcore.Action) (bool, runtime.Object, error) {
    					if action.GetVerb() == "update" && action.GetResource().Resource == "pods" && action.GetSubresource() == "status" {
    						i++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
Back to top