Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,318 for finalizerB (0.23 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	destroyFunc, registry := NewTestGenericStoreRegistry(t)
    	registry.EnableGarbageCollection = true
    	defer destroyFunc()
    
    	createPod := func(i int, finalizers []string) *example.Pod {
    		return &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i), Finalizers: finalizers, Generation: initialGeneration},
    			Spec:       example.PodSpec{NodeName: "machine"},
    		}
    	}
    
    	i := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  2. pkg/controller/job/tracking_utils.go

    // given job-key.
    // This is thread-safe across different job keys.
    func (u *uidTrackingExpectations) expectFinalizersRemoved(logger klog.Logger, jobKey string, deletedKeys []string) error {
    	logger.V(4).Info("Expecting tracking finalizers removed", "key", jobKey, "podUIDs", deletedKeys)
    
    	uids := u.getSet(jobKey)
    	if uids == nil {
    		uids = &uidSet{
    			key: jobKey,
    			set: sets.New[string](),
    		}
    		if err := u.store.Add(uids); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

                        println("value = " + thing.prop.get())
                    }
                }
            """
    
            when:
            run("show")
    
            then:
            outputContains("finalize failed with: Cannot finalize the value of extension 'thing' property 'prop' because configuration of root project 'broken' has not completed yet.")
            output.count("value = value 1") == 2
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/runtime/arena_test.go

    	// Try to queue the object's finalizer that we set earlier.
    	GC()
    	GC()
    
    	if !BlockUntilEmptyFinalizerQueue(int64(2 * time.Second)) {
    		t.Fatal("finalizer queue was never emptied")
    	}
    	if !finalized.Load() {
    		t.Error("expected arena-referenced object to be finalized")
    	}
    }
    
    func TestUserArenaClearsPointerBits(t *testing.T) {
    	// This is a regression test for a serious issue wherein if pointer bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings("removal") // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go

    						// decoded from JSON, they are unmarshalled as bool.
    						"controller":         true,
    						"blockOwnerDeletion": true,
    					},
    				},
    				"finalizers": []interface{}{
    					"finalizer.1",
    					"finalizer.2",
    				},
    			},
    		},
    	}
    
    	if got, want := unstruct.GetAPIVersion(), "test_version"; got != want {
    		t.Errorf("GetAPIVersions() = %s, want %s", got, want)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 17.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings("removal") // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/testdata/chans.go

    // been closed and no more values will be received.
    func (r *Receiver[T]) Next() (T, bool) {
    	v, ok := <-r.values
    	return v, ok
    }
    
    // finalize is a finalizer for the receiver.
    func (r *Receiver[T]) finalize() {
    	close(r.done)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionLifecycleIntegrationTest.groovy

                        println("value = " + thing.prop.files)
                    }
                }
            """
    
            when:
            run("show")
    
            then:
            outputContains("finalize failed with: Cannot finalize the value of this file collection because configuration of root project 'broken' has not completed yet.")
            output.count("value = [${file('some-file')}]") == 2
        }
    
        @NotYetImplemented
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 10:55:07 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            0 * closure._
            1 * fileResolver.resolve('a') >> file1
            1 * fileResolver.resolve('b') >> file2
            0 * fileResolver._
        }
    
        def "can finalize when already finalized"() {
            given:
            def file = new File('one')
            collection.from('a')
    
            when:
            collection.finalizeValue()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top