Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 221 for expectGet (1.37 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    }
    
    func TestReplaceAliases(t *testing.T) {
    	tests := []struct {
    		name     string
    		arg      string
    		expected string
    	}{
    		{
    			name:     "no-replacement",
    			arg:      "service",
    			expected: "service",
    		},
    		{
    			name:     "all-replacement",
    			arg:      "all",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    			TargetPort:  0,
    		},
    	}
    
    	if len(metaServices) != 1 {
    		t.Fatalf("expected 1 instance, got %v", len(metaServices))
    	}
    	if !reflect.DeepEqual(expected, metaServices[0]) {
    		t.Fatalf("expected instance %v, got %v", expected, metaServices[0])
    	}
    
    	// Test that we first look up instances by Proxy pod
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  3. src/net/dnsclient_unix_test.go

    				if expected := "lookup golang.org.: SRV header name is invalid"; err == nil || err.Error() != expected {
    					t.Errorf("Resolver.LookupSRV returned unexpected error, got %q, want %q", err, expected)
    				}
    				_, _, err = LookupSRV("hdr", "tcp", "golang.org.")
    				if expected := "lookup golang.org.: SRV header name is invalid"; err == nil || err.Error() != expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top