Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 2,412 for ErrorS (0.07 sec)

  1. cmd/update_test.go

    		if !testCase.expectedErr {
    			if err != nil {
    				t.Errorf("error case %d: expected no error, got: %v", i+1, err)
    			}
    		} else if err == nil {
    			t.Errorf("error case %d: expected error got: %v", i+1, err)
    		}
    		if err == nil {
    			if hex.EncodeToString(sha256Sum) != testCase.expectedSha256hex {
    				t.Errorf("case %d: result: expected: %v, got: %x", i+1, testCase.expectedSha256hex, sha256Sum)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/bytes/reader_test.go

    		t.Errorf("ReadRune: unexpected error: %v", err)
    	}
    
    	const want = "abcdef"
    	r.Reset([]byte(want))
    	if err := r.UnreadRune(); err == nil {
    		t.Errorf("UnreadRune: expected error, got nil")
    	}
    	buf, err := io.ReadAll(r)
    	if err != nil {
    		t.Errorf("ReadAll: unexpected error: %v", err)
    	}
    	if got := string(buf); got != want {
    		t.Errorf("ReadAll: got %q, want %q", got, want)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/cni-watcher.go

    	if err != nil {
    		log.Errorf("failed to process CNI event payload: %v", err)
    		http.Error(w, err.Error(), http.StatusBadRequest)
    		return
    	}
    
    	if err := s.ReconcileCNIAddEvent(req.Context(), msg); err != nil {
    		log.WithLabels("ns", msg.PodNamespace, "name", msg.PodName).Errorf("failed to handle add event: %v", err)
    		http.Error(w, err.Error(), http.StatusInternalServerError)
    		return
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    	if err != nil {
    		t.Errorf("read error: %v", err)
    	}
    	if n != 0 {
    		t.Errorf("wrong count; got %d want 0", n)
    	}
    }
    
    func TestUnreadByte(t *testing.T) {
    	b := new(Buffer)
    
    	// check at EOF
    	if err := b.UnreadByte(); err == nil {
    		t.Fatal("UnreadByte at EOF: got no error")
    	}
    	if _, err := b.ReadByte(); err == nil {
    		t.Fatal("ReadByte at EOF: got no error")
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. cmd/endpoint_test.go

    					t.Errorf("error: expected = <nil>, got = %v", err)
    				}
    			case err == nil:
    				t.Errorf("error: expected = %v, got = <nil>", test.expectedErr)
    			case test.expectedErr.Error() != err.Error():
    				t.Errorf("error: expected = %v, got = %v", test.expectedErr, err)
    			}
    
    			if err == nil {
    				if (test.expectedEndpoint.URL == nil) != (endpoint.URL == nil) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/configdump.go

    func (c *ConfigWriter) PrintSecretDump(outputFormat string) error {
    	if c.configDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	secretDump, err := c.configDump.GetSecretConfigDump()
    	if err != nil {
    		return fmt.Errorf("sidecar doesn't support secrets: %v", err)
    	}
    	out, err := protomarshal.ToJSONWithIndent(secretDump, "    ")
    	if err != nil {
    		return fmt.Errorf("unable to marshal secrets in Envoy config dump: %v", err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. cni/pkg/install/cniconfig.go

    	}
    
    	return "", fmt.Errorf("no valid networks found in %s", confDir)
    }
    
    // insertCNIConfig will append newCNIConfig to existingCNIConfig
    func insertCNIConfig(newCNIConfig, existingCNIConfig []byte) ([]byte, error) {
    	var istioMap map[string]any
    	err := json.Unmarshal(newCNIConfig, &istioMap)
    	if err != nil {
    		return nil, fmt.Errorf("error loading Istio CNI config (JSON error): %v", err)
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/envoy/configdump/secret_test.go

    			if err != nil {
    				t.Errorf("error opening test data file: %v", err)
    			}
    			defer configDumpFile.Close()
    			configDump, err := io.ReadAll(configDumpFile)
    			if err != nil {
    				t.Errorf("error reading test data file: %v", err)
    			}
    
    			outFile, err := os.Open(fmt.Sprintf("testdata/secret/%s/output", tc.sds))
    			if err != nil {
    				t.Errorf("error opening test data output file: %v", err)
    			}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. cmd/httprange_test.go

    	}
    	for i, urs := range unparsableRangeSpecs {
    		rs, err := parseRequestRangeSpec(urs)
    		if err == nil {
    			t.Errorf("Case %d: Did not get an expected error - got %v", i, rs)
    		}
    		if isErrInvalidRange(err) {
    			t.Errorf("Case %d: Got invalid range error instead of a parse error", i)
    		}
    		if rs != nil {
    			t.Errorf("Case %d: Got non-nil rs though err != nil: %v", i, rs)
    		}
    	}
    
    	invalidRangeSpecs := []string{
    		"bytes=5-3",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. cmd/object-api-getobjectinfo_test.go

    			if testCase.err.Error() != err.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error())
    			}
    		}
    
    		// Test passes as expected, but the output values are verified for correctness here.
    		if err == nil && testCase.shouldPass {
    			if testCase.result.Bucket != result.Bucket {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 23 15:46:00 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top