Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 221 for expectGet (0.21 sec)

  1. internal/s3select/select_test.go

    					t.Fatal(err)
    				}
    				t.Logf("got expected error: %v", err)
    				return
    			}
    
    			if err = s3Select.Open(newBytesRSC(testCase.input)); err != nil {
    				if !testCase.wantErr {
    					t.Fatal(err)
    				}
    				t.Logf("got expected error: %v", err)
    				return
    			} else if testCase.wantErr {
    				t.Error("did not get expected error")
    				return
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 76.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    		}
    	}
    
    	// expected error response when the unsigned HTTP request is not permitted.
    	unsupportedSignature := getAPIError(ErrSignatureVersionNotSupported).HTTPStatusCode
    	if rec.Code != unsupportedSignature {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    			t.Logf("(called from line %d)", line)
    			t.Errorf("Timed out waiting for an event")
    		}
    	}
    	validateEvents := func(expected, actual watch.Event) (bool, []string) {
    		errors := []string{}
    		if e, a := expected.Type, actual.Type; e != a {
    			errors = append(errors, fmt.Sprintf("Expected: %s, got: %s", e, a))
    		}
    		actualObject := actual.Object
    		if co, ok := actualObject.(runtime.CacheableObject); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
                          fail("Peeker should not be able to peek into non-input ClosingFuture.");
                        } catch (IllegalArgumentException expected) {
                        }
                        capturedPeeker.set(peeker);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/validation_test.go

    		if err == nil {
    			t.Errorf("%v: expected %v", tc.name, tc.expectedError)
    			continue
    		}
    		// this only works when status errors contain the expect kind and version, so this effectively tests serializations too
    		if !strings.Contains(err.Error(), tc.expectedError) {
    			t.Errorf("%v: expected %v, got %v", tc.name, tc.expectedError, err)
    			continue
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 26 20:48:36 UTC 2021
    - 63.6K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	actual := []*cRecord{}
    	for _, cStatus := range runtime.Containers {
    		actual = append(actual, &cRecord{name: cStatus.Metadata.Name, attempt: cStatus.Metadata.Attempt, state: cStatus.State})
    	}
    	sort.Sort(cRecordList(expected))
    	sort.Sort(cRecordList(actual))
    	assert.Equal(t, expected, actual, desc)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  7. pkg/apis/certificates/validation/validation_test.go

    	}
    	for name, test := range tests {
    		t.Run(name, func(t *testing.T) {
    			el := ValidateCertificateSigningRequestCreate(&test.csr)
    			if !reflect.DeepEqual(el, test.errs) {
    				t.Errorf("returned and expected errors did not match - expected\n%v\nbut got\n%v", test.errs.ToAggregate(), el.ToAggregate())
    			}
    		})
    	}
    }
    
    func repeatString(s string, num int) string {
    	l := make([]string, num)
    	for i := 0; i < num; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

          key = "has_space "
          cache.edit(key)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"")
        }
        assertFailsWith<IllegalArgumentException> {
          key = "has_CR\r"
          cache.edit(key)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"")
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    							// and binding with the provided configuration. Test will ensure
    							// that the provided configuration is capable of matching
    							// params as expected, and not matching params when not expected.
    							// Also ensures the NotFound setting works as expected with this particular
    							// configuration of ParamRef when all the previously
    							// matched params are deleted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/httproute_test.go

    					continue
    				}
    				if len(vh.Routes) == 0 {
    					t.Fatalf("expected routes to be found but not %s", vh.Name)
    				}
    				for _, r := range vh.Routes {
    					if tt.expectStatefulSession == nil {
    						if r.TypedPerFilterConfig != nil &&
    							r.TypedPerFilterConfig["envoy.filters.http.stateful_session"] != nil {
    							t.Fatalf("stateful session config is not expected but found for %s, %s", vh.Name, r.Name)
    						}
    					} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 51.4K bytes
    - Viewed (0)
Back to top