Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for roundTrip (0.19 sec)

  1. internal/grid/grid_test.go

    			t.Errorf("want %q, got %q", testPayload, string(resp))
    		}
    		t.Log("Roundtrip:", time.Since(start))
    	})
    
    	t.Run("localToRemoteErr", func(t *testing.T) {
    		const testPayload = "Hello Grid World!"
    		start := time.Now()
    		resp, err := remoteConn.Request(context.Background(), handlerTest2, []byte(testPayload))
    		t.Log("Roundtrip:", time.Since(start))
    		if len(resp) != 0 {
    			t.Errorf("want nil, got %q", string(resp))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. pkg/api/testing/unstructured_test.go

    			if t.Failed() {
    				break
    			}
    		}
    	}
    }
    
    // TestRoundtripToUnstructured verifies the roundtrip faithfulness of all external types from native
    // to unstructured and back using both the JSON and CBOR serializers. The intermediate unstructured
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/nettest/conntest.go

    		t.Errorf("roundtrip SetDeadline error: %v", err)
    	}
    
    	const s = "Hello, world!"
    	buf := []byte(s)
    	if _, err := c.Write(buf); err != nil {
    		t.Errorf("roundtrip Write error: %v", err)
    	}
    	if _, err := io.ReadFull(c, buf); err != nil {
    		t.Errorf("roundtrip Read error: %v", err)
    	}
    	if string(buf) != s {
    		t.Errorf("roundtrip data mismatch: got %q, want %q", buf, s)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pkg/spiffe/spiffe_test.go

    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, *tt.expected) {
    				t.Fatalf("expected %#v, got %#v", *tt.expected, got)
    			}
    
    			roundTrip := got.String()
    			if roundTrip != tt.input {
    				t.Fatalf("round trip failed, expected %q got %q", tt.input, roundTrip)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. internal/grid/muxclient.go

    		LastPong:           time.Now().UnixNano(),
    		BaseFlags:          parent.baseFlags,
    		clientPingInterval: parent.clientPingInterval,
    	}
    }
    
    // roundtrip performs a roundtrip, returning the first response.
    // This cannot be used concurrently.
    func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) {
    	if m.init {
    		return nil, errors.New("mux client already used")
    	}
    	m.init = true
    	m.singleResp = true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. internal/grid/handlers.go

    }
    
    // RoundTripper provides an interface for type roundtrip serialization.
    type RoundTripper interface {
    	msgp.Unmarshaler
    	msgp.Marshaler
    	msgp.Sizer
    
    	comparable
    }
    
    // SingleHandler is a type safe handler for single roundtrip requests.
    type SingleHandler[Req, Resp RoundTripper] struct {
    	id            HandlerID
    	sharedResp    bool
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/net/http/clientserver_test.go

    	}))
    
    	// Set ExpectContinueTimeout non-zero so RoundTrip won't try to write it.
    	cst.tr.ExpectContinueTimeout = 10 * time.Second
    
    	req, err := NewRequest("POST", cst.ts.URL, testErrorReader{t})
    	if err != nil {
    		t.Fatal(err)
    	}
    	req.ContentLength = 0 // so transport is tempted to sniff it
    	req.Header.Set("Expect", "100-continue")
    	res, err := cst.tr.RoundTrip(req)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  8. pkg/kube/inject/inject_test.go

    				t.Fatalf("incorrect output: got %v, expected %v", got, tt.expect)
    			}
    			roundTrip, err := mesh.ApplyProxyConfig(got, mesh.DefaultMeshConfig())
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !cmp.Equal(roundTrip.GetDefaultConfig(), tt.proxy, protocmp.Transform()) {
    				t.Fatalf("round trip is not identical: got \n%+v, expected \n%+v", *roundTrip.GetDefaultConfig(), tt.proxy)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. cmd/metacache-server-pool.go

    				return entries, io.EOF
    			}
    			if c.status == scanStateError || c.status == scanStateNone {
    				o.ID = ""
    				o.Create = false
    				o.debugln("scan status", c.status, " - waiting a roundtrip to create")
    			} else {
    				// Continue listing
    				o.ID = c.id
    				go func(meta metacache) {
    					// Continuously update while we wait.
    					t := time.NewTicker(metacacheMaxClientWait / 10)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:23 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. src/encoding/json/encode_test.go

    	NumberStr  Number  `json:",string"`
    }
    
    func TestRoundtripStringTag(t *testing.T) {
    	tests := []struct {
    		CaseName
    		in   StringTag
    		want string // empty to just test that we roundtrip
    	}{{
    		CaseName: Name("AllTypes"),
    		in: StringTag{
    			BoolStr:    true,
    			IntStr:     42,
    			UintptrStr: 44,
    			StrStr:     "xzbit",
    			NumberStr:  "46",
    		},
    		want: `{
    	"BoolStr": "true",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top