Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for expectActions (0.39 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    		t.Errorf("Expected 2 more actions, got %d", len(client.Actions())-numActionsBefore)
    	}
    
    	// only 2 slices should match, 2 should be deleted, 1 should be updated as a placeholder
    	expectAction(t, client.Actions(), numActionsBefore, "update", "endpointslices")
    	expectAction(t, client.Actions(), numActionsBefore+1, "delete", "endpointslices")
    
    	// ensure cache mutation has not occurred
    	cmc.Check(t)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    	if err != nil {
    		t.Errorf("Couldn't get key for object %#v: %v", rsSpec, err)
    	}
    
    	// Lowering expectations should lead to a sync that creates a replica, however the
    	// fakePodControl error will prevent this, leaving expectations at 0, 0
    	manager.expectations.CreationObserved(logger, rsKey)
    	rsSpec.Status.Replicas = 1
    	rsSpec.Status.ReadyReplicas = 1
    	rsSpec.Status.AvailableReplicas = 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  3. pkg/controller/daemon/daemon_controller.go

    	key, err := controller.KeyFunc(ds)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", ds, err))
    		return
    	}
    
    	// Delete expectations for the DaemonSet so if we create a new one with the same name it starts clean
    	dsc.expectations.DeleteExpectations(logger, key)
    
    	dsc.queue.Add(key)
    }
    
    // Run begins watching and syncing daemon sets.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  4. pkg/controller/job/job_controller.go

    	}
    
    	// Check the expectations of the job before counting active pods, otherwise a new pod can sneak in
    	// and update the expectations after we've retrieved active pods from the store. If a new pod enters
    	// the store after we've checked the expectation, the job sync is just deferred till the next relist.
    	satisfiedExpectations := jm.expectations.SatisfiedExpectations(logger, key)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    		schemaGenerator func(maxLength *int64) *schema.Structural
    		setMaxElements  int64
    
    		// calc costs expectations are checked against the generated schema without any max element limits set
    		expectedCalcCost           uint64
    		expectCalcCostExceedsLimit uint64
    
    		// calc costs expectations are checked against the generated schema with max element limits set
    		expectedSetCost             uint64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. pkg/controller/cronjob/cronjob_controllerv2_test.go

    	T1, err := time.Parse(time.RFC3339, "2016-05-26T10:00:00Z")
    	if err != nil {
    		panic("test setup error")
    	}
    	return T1
    }
    
    func TestControllerV2SyncCronJob(t *testing.T) {
    	// Check expectations on deadline parameters
    	if shortDead/60/60 >= 1 {
    		t.Errorf("shortDead should be less than one hour")
    	}
    
    	if mediumDead/60/60 < 1 || mediumDead/60/60 >= 24 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

                }
            """
    
            expect:
            fails("broken")
    
            // The failure is currently very specific to the annotation type
            // TODO  - fail earlier and add some expectations here
    
            fails("broken")
    
            where:
            annotationType << [
                Input,
                InputFile,
                InputDirectory,
                InputFiles,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/TypeToken.java

              canonicalizeWildcardsInType(((GenericArrayType) type).getGenericComponentType()));
        }
        return type;
      }
    
      // WARNING: the returned type may have empty upper bounds, which may violate common expectations
      // by user code or even some of our own code. It's fine for the purpose of checking subtypes.
      // Just don't ever let the user access it.
      private static WildcardType canonicalizeWildcardType(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

              canonicalizeWildcardsInType(((GenericArrayType) type).getGenericComponentType()));
        }
        return type;
      }
    
      // WARNING: the returned type may have empty upper bounds, which may violate common expectations
      // by user code or even some of our own code. It's fine for the purpose of checking subtypes.
      // Just don't ever let the user access it.
      private static WildcardType canonicalizeWildcardType(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/out.go

      out of the compiler and hopefully mention "name".
    */
    #define __cgo_compile_assert_eq(x, y, name) typedef char name[(x-y)*(x-y)*-2UL+1UL];
    
    /* Check at compile time that the sizes we use match our expectations. */
    #define __cgo_size_assert(t, n) __cgo_compile_assert_eq(sizeof(t), (size_t)n, _cgo_sizeof_##t##_is_not_##n)
    
    __cgo_size_assert(char, 1)
    __cgo_size_assert(short, 2)
    __cgo_size_assert(int, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top