Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 185 for expectGet (0.24 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    }
    
    func (p *parser) want(tok token) {
    	if !p.got(tok) {
    		p.syntaxError("expected " + tokstring(tok))
    		p.advance()
    	}
    }
    
    // gotAssign is like got(_Assign) but it also accepts ":="
    // (and reports an error) for better parser error recovery.
    func (p *parser) gotAssign() bool {
    	switch p.tok {
    	case _Define:
    		p.syntaxError("expected =")
    		fallthrough
    	case _Assign:
    		p.next()
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceregistry_test.go

    func expectEndpoints(t *testing.T, s *xds.FakeDiscoveryServer, cluster string, expected []string, metadata *model.NodeMetadata) {
    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		got := xdstest.ExtractLoadAssignments(s.Endpoints(s.SetupProxy(&model.Proxy{Metadata: metadata})))
    		sort.Strings(got[cluster])
    		sort.Strings(expected)
    		if !reflect.DeepEqual(got[cluster], expected) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/cri_stats_provider_test.go

    }
    
    func checkCRINetworkStats(assert *assert.Assertions, actual *statsapi.NetworkStats, expected *cadvisorapiv2.NetworkStats) {
    	assert.Equal(expected.Interfaces[0].RxBytes, *actual.RxBytes)
    	assert.Equal(expected.Interfaces[0].RxErrors, *actual.RxErrors)
    	assert.Equal(expected.Interfaces[0].TxBytes, *actual.TxBytes)
    	assert.Equal(expected.Interfaces[0].TxErrors, *actual.TxErrors)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    		// Assert
    		// 4. When the volume is mounted again, expect that UnmountDevice operation did not clear devicePath
    		if devicePath == "" {
    			klog.ErrorS(nil, "Expected WaitForAttach called with devicePath from Node.Status")
    			close(finished)
    			return "", fmt.Errorf("Expected devicePath from Node.Status")
    		}
    		close(finished)
    		return devicePath, nil
    	}
    	fakePlugin.Unlock()
    
    	// Start the reconciler again.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  5. pkg/controller/endpoint/endpoints_controller_test.go

    				es.Ports[0].Port = 8082
    			})},
    			expected: false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := endpointSubsetsEqualIgnoreResourceVersion(tt.subsets1, tt.subsets2); got != tt.expected {
    				t.Errorf("semanticIgnoreResourceVersion.DeepEqual() = %v, expected %v", got, tt.expected)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val call1 = client.newCall(Request(server.url("/")))
        assertFailsWith<IOException> {
          call1.execute()
        }.also { expected ->
          when (expected) {
            is SocketTimeoutException, is SSLException -> {}
            else -> throw expected
          }
        }
    
        // The second call times out because it uses the same bad connection.
        val call2 = client.newCall(Request(server.url("/")))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_attacher_test.go

    					t.Errorf("expected mount path: %s. got: %s", tc.deviceMountPath, vol.Path)
    				}
    				if !reflect.DeepEqual(vol.MountFlags, tc.spec.PersistentVolume.Spec.MountOptions) {
    					t.Errorf("expected mount options: %v, got: %v", tc.spec.PersistentVolume.Spec.MountOptions, vol.MountFlags)
    				}
    				if vol.VolumeMountGroup != tc.expectedVolumeMountGroup {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  8. pkg/kubelet/nodestatus/setters_test.go

    			// call setter on node
    			if err := setter(ctx, tc.node); err != nil {
    				t.Fatalf("unexpected error: %v", err)
    			}
    			// check expected node
    			assert.True(t, apiequality.Semantic.DeepEqual(tc.expectNode, tc.node),
    				"Diff: %s", cmp.Diff(tc.expectNode, tc.node))
    			// check expected events
    			require.Equal(t, len(tc.expectEvents), len(events))
    			for i := range tc.expectEvents {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    }
    
    func (tc *testContext) verify(t *testing.T, expected result, initialObjects []metav1.Object, result interface{}, status *framework.Status) {
    	t.Helper()
    	assert.Equal(t, expected.status, status)
    	objects := tc.listAll(t)
    	wantObjects := update(t, initialObjects, expected.changes)
    	wantObjects = append(wantObjects, expected.added...)
    	for _, remove := range expected.removed {
    		for i, obj := range wantObjects {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			if err == nil {
    				if kmsUsed == nil || kmsUsed.v2Used != tt.wantV2Used {
    					t.Fatalf("unexpected kmsUsed value, expected: %v, got: %v", tt.wantV2Used, kmsUsed)
    				}
    
    			}
    			if !strings.Contains(errString(err), tt.expectedErr) {
    				t.Fatalf("expecting error calling prefixTransformersAndProbes, expected: %s, got: %s", tt.expectedErr, errString(err))
    			}
    		})
    	}
    }
    
    func TestKMSMaxTimeout(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
Back to top