Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for cancel0 (0.18 sec)

  1. cmd/server_test.go

    }
    
    func (s *TestSuiteCommon) RestartTestServer(c *check) {
    	// Shutdown.
    	s.testServer.cancel()
    	s.testServer.Server.Close()
    	s.testServer.Obj.Shutdown(context.Background())
    
    	// Restart.
    	ctx, cancel := context.WithCancel(context.Background())
    
    	s.testServer.cancel = cancel
    	s.testServer = initTestServerWithBackend(ctx, c, s.testServer, s.testServer.Obj, s.testServer.rawDiskPaths)
    	if s.secure {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			for _, err := range errs {
    				t.Errorf("unexpected error: %v", err)
    			}
    
    			// test context cancellation
    			found := false
    			evalCtx, cancel := context.WithTimeout(ctx, time.Microsecond)
    			cancel()
    			errs, _ = celValidator.Validate(evalCtx, field.NewPath("root"), &s, tt.obj, nil, celconfig.RuntimeCELCostBudget)
    			for _, err := range errs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    func (e errTransport) RoundTrip(_ *http.Request) (*http.Response, error) {
    	return nil, fmt.Errorf("%s", e)
    }
    
    func testContext(t *testing.T) context.Context {
    	ctx, cancel := context.WithCancel(context.Background())
    	t.Cleanup(cancel)
    	return ctx
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		); err != nil {
    			t.Errorf("Unexpected error: %v", err)
    		}
    	}
    
    	ctx, cancel := context.WithCancel(testContext)
    
    	lock := sync.Mutex{}
    	called := false
    
    	// We rely on the fact that there is exactly one worker, so it should exit after
    	// getting context canceled error on the first Delete call to etcd.
    	// With multiple workers, each of them would be calling Delete once.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller_test.go

    	manager.jobStoreSynced = alwaysReady
    	manager.expectations = FakeJobExpectations{
    		controller.NewControllerExpectations(), true, func() {
    		},
    	}
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	sharedInformerFactory.Start(ctx.Done())
    	sharedInformerFactory.WaitForCacheSync(ctx.Done())
    
    	go manager.Run(ctx, 1)
    
    	tests := []struct {
    		name         string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. pkg/controller/daemon/daemon_controller_test.go

    		}
    	}
    }
    
    func TestExpectationsOnRecreate(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    
    	client := fake.NewSimpleClientset()
    
    	f := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc())
    	dsc, err := NewDaemonSetsController(
    		ctx,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/emoji.go

    	"camping":                              "\U0001f3d5\ufe0f",
    	"canada":                               "\U0001f1e8\U0001f1e6",
    	"canary_islands":                       "\U0001f1ee\U0001f1e8",
    	"cancer":                               "\u264b",
    	"candle":                               "\U0001f56f\ufe0f",
    	"candy":                                "\U0001f36c",
    	"canned_food":                          "\U0001f96b",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 107.7K bytes
    - Viewed (0)
  8. okhttp-android/src/main/baseline-prof.txt

    PLkotlinx/coroutines/JobCancellationException;->fillInStackTrace()Ljava/lang/Throwable;
    PLkotlinx/coroutines/JobImpl;->getOnCancelComplete$kotlinx_coroutines_core()Z
    PLkotlinx/coroutines/JobKt;->cancel$default(Lkotlin/coroutines/CoroutineContext;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
    PLkotlinx/coroutines/JobSupport$Finishing;-><init>(Lkotlinx/coroutines/NodeList;ZLjava/lang/Throwable;)V
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  9. pkg/controller/podautoscaler/horizontal_test.go

    }
    
    func (tc *testCase) runTestWithController(t *testing.T, hpaController *HorizontalController, informerFactory informers.SharedInformerFactory) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	informerFactory.Start(ctx.Done())
    	go hpaController.Run(ctx, 5)
    
    	tc.Lock()
    	shouldWait := tc.verifyEvents
    	tc.Unlock()
    
    	if shouldWait {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			wantPrefilterStatus: framework.NewStatus(framework.Skip),
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			args := &config.PodTopologySpreadArgs{
    				DefaultConstraints: tt.defaultConstraints,
    				DefaultingType:     config.ListDefaulting,
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
Back to top