Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expectedState (0.3 sec)

  1. pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go

    func assertStateEqual(t *testing.T, restoredState, expectedState State) {
    	expectedMachineState := expectedState.GetMachineState()
    	restoredMachineState := restoredState.GetMachineState()
    	assert.Equal(t, expectedMachineState, restoredMachineState, "expected MachineState does not equal to restored one")
    
    	expectedMemoryAssignments := expectedState.GetMemoryAssignments()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    				return
    			}
    
    			// compare state after restoration with the one expected
    			AssertStateEqual(t, restoredState, tc.expectedState)
    		})
    	}
    }
    
    func TestCheckpointStateStore(t *testing.T) {
    	testCases := []struct {
    		description   string
    		expectedState *stateMemory
    	}{
    		{
    			"Store default cpu set",
    			&stateMemory{defaultCPUSet: cpuset.New(1, 2, 3)},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/state/state_checkpoint_test.go

    )
    
    const testingCheckpoint = "dramanager_checkpoint_test"
    
    // assertStateEqual marks provided test as failed if provided states differ
    func assertStateEqual(t *testing.T, restoredState, expectedState ClaimInfoStateList) {
    	assert.Equal(t, expectedState, restoredState, "expected ClaimInfoState does not equal to restored one")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultIncludedBuildTaskGraph.java

                controllers.close();
            }
    
            private void assertCanQueueTask() {
                expectInState(State.Preparing);
            }
    
            private void expectInState(State expectedState) {
                if (state != expectedState) {
                    throw unexpectedState();
                }
            }
    
            private IllegalStateException unexpectedState() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:04:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. security/pkg/credentialfetcher/plugin/gce_test.go

    			expectedRotate: false,
    		},
    		"no cached credential": {
    			now:            time.Now(),
    			expectedRotate: true,
    		},
    		"no expiration in token": {
    			jwt:            firstPartyJwt,
    			now:            time.Now(),
    			expectedRotate: true,
    		},
    		"invalid token": {
    			jwt:            "invalid-token",
    			now:            time.Now(),
    			expectedRotate: true,
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 10.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsTesting.java

          }
        } else if (expectedStats.count() == 1) {
          assertThat(actualStats.mean()).isWithin(ALLOWED_ERROR).of(expectedStats.mean());
          assertThat(actualStats.populationVariance()).isWithin(0.0).of(0.0);
          assertThat(actualStats.min()).isWithin(ALLOWED_ERROR).of(expectedStats.min());
          assertThat(actualStats.max()).isWithin(ALLOWED_ERROR).of(expectedStats.max());
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 09 22:49:56 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Uninterruptibles}.
     *
     * @author Anthony Zana
     */
    public class UninterruptiblesTest extends TestCase {
      private static final String EXPECTED_TAKE = "expectedTake";
    
      /** Timeout to use when we don't expect the timeout to expire. */
      private static final long LONG_DELAY_MS = 2500;
    
      private static final long SLEEP_SLACK = 2;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Uninterruptibles}.
     *
     * @author Anthony Zana
     */
    public class UninterruptiblesTest extends TestCase {
      private static final String EXPECTED_TAKE = "expectedTake";
    
      /** Timeout to use when we don't expect the timeout to expire. */
      private static final long LONG_DELAY_MS = 2500;
    
      private static final long SLEEP_SLACK = 2;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 30.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go

    func TestEnvelopeTransformerStaleness(t *testing.T) {
    	t.Parallel()
    	testCases := []struct {
    		desc          string
    		expectedStale bool
    		testErr       error
    		testKeyID     string
    		useSeedWrite  bool
    		useSeedRead   bool
    	}{
    		{
    			desc:          "stateFunc returns err",
    			expectedStale: false,
    			testErr:       fmt.Errorf("failed to perform status section of the healthz check for KMS Provider"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:50:20 UTC 2023
    - 47.2K bytes
    - Viewed (0)
  10. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

                Collection<State> expectedStates = Arrays.asList(states);
                lock.lock();
                try {
                    while (!expectedStates.contains(state)) {
                        if (!condition.awaitUntil(expiry)) {
                            throw new IllegalStateException(String.format("Timeout waiting for one of: %s",
                                    expectedStates));
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
Back to top