Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 94 for expectGet (0.21 sec)

  1. pilot/pkg/networking/core/cluster_test.go

    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Time.Seconds)))
    					g.Expect(cluster.UpstreamConnectionOptions.TcpKeepalive.KeepaliveInterval.Value).
    						To(Equal(uint32(expected.Tcp.TcpKeepalive.Interval.Seconds)))
    					g.Expect(cluster.ConnectTimeout).NotTo(BeNil())
    					g.Expect(cluster.ConnectTimeout.Seconds).To(Equal(expected.Tcp.ConnectTimeout.Seconds))
    
    					g.Expect(thresholds.MaxConnections).NotTo(BeNil())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				}
    				matched := false
    				for expected := range unmatched {
    					if strings.Contains(err.Error(), expected) {
    						delete(unmatched, expected)
    						matched = true
    						break
    					}
    				}
    				if !matched {
    					t.Errorf("expected error to contain one of %v, but got: %v", unmatched, err)
    				}
    			}
    			if len(unmatched) > 0 {
    				t.Errorf("expected errors %v", unmatched)
    			}
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  3. src/database/sql/sql_test.go

    	type Str string
    	var scanned Str
    
    	err := db.QueryRow("SELECT|people|name|name=?", "Alice").Scan(&scanned)
    	if err != nil {
    		t.Fatal(err)
    	}
    	expected := Str("Alice")
    	if scanned != expected {
    		t.Errorf("expected %+v, got %+v", expected, scanned)
    	}
    }
    
    func BenchmarkConcurrentDBExec(b *testing.B) {
    	b.ReportAllocs()
    	ct := new(concurrentDBExecTest)
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. pkg/controller/garbagecollector/garbagecollector_test.go

    		},
    	}
    	err := gc.orphanDependents(logger, objectReference{}, dependents)
    	expected := `the server reported a conflict`
    	if err == nil || !strings.Contains(err.Error(), expected) {
    		if err != nil {
    			t.Errorf("expected error contains text %q, got %q", expected, err.Error())
    		} else {
    			t.Errorf("expected error contains text %q, got nil", expected)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. src/crypto/x509/x509_test.go

    		if !extension.Id.Equal(expected[i].Id) {
    			t.Fatalf("extension #%d has unexpected type %v (expected %v)", i, extension.Id, expected[i].Id)
    		}
    
    		if !bytes.Equal(extension.Value, expected[i].Value) {
    			t.Fatalf("extension #%d has unexpected contents %x (expected %x)", i, extension.Value, expected[i].Value)
    		}
    	}
    }
    
    // serialiseAndParse generates a self-signed certificate from template and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_test.go

    	kubelet.HandlePodCleanups(ctx)
    
    	// assert that unwanted pods were killed
    	if actual, expected := kubelet.podWorkers.(*fakePodWorkers).triggeredDeletion, []types.UID{"12345678"}; !reflect.DeepEqual(actual, expected) {
    		t.Fatalf("expected %v to be deleted, got %v", expected, actual)
    	}
    	fakeRuntime.AssertKilledPods([]string(nil))
    
    	// simulate Runtime.KillPod
    	fakeRuntime.PodList = nil
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	expectStableQueueLength := func(expected int) {
    		t.Helper()
    		for i := 0; i < 5; i++ {
    			if actual := dsc.queue.Len(); actual != expected {
    				t.Fatalf("expected queue len to remain at %d, got %d", expected, actual)
    			}
    			time.Sleep(10 * time.Millisecond)
    		}
    	}
    	waitForQueueLength := func(expected int, msg string) {
    		t.Helper()
    		i := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

          requestBuilder.url("ftp://hostname/path")
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
        }
      }
    
      @Test
      fun invalidPort() {
        val requestBuilder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("http://localhost:65536/")
        }.also { expected ->
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  9. pkg/apis/apps/validation/validation_test.go

    	for k, v := range errorCases {
    		errs := ValidateDeployment(v, corevalidation.PodValidationOptions{})
    		if len(errs) == 0 {
    			t.Errorf("[%s] expected failure", k)
    		} else if !strings.Contains(errs[0].Error(), k) {
    			t.Errorf("unexpected error: %q, expected: %q", errs[0].Error(), k)
    		}
    	}
    }
    
    func TestValidateDeploymentStatus(t *testing.T) {
    	collisionCount := int32(-3)
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    			// verify the results
    			if tc.expectAnnotation != "" {
    				out := obj.(*example.Pod)
    				if v, found := out.Annotations[tc.expectAnnotation]; !found {
    					t.Errorf("Expected annotation %q not found", tc.expectAnnotation)
    				} else if v != "true" {
    					t.Errorf("Expected annotation %q has wrong value: %q", tc.expectAnnotation, v)
    				}
    			}
    			if tc.expectMilestones != nil {
    				if !reflect.DeepEqual(milestones, tc.expectMilestones) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
Back to top