- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for TestRequest (0.14 sec)
-
internal/grid/benchmark_test.go
} func benchmarkGridRequests(b *testing.B, n int) { defer testlogger.T.SetErrorTB(b)() errFatal := func(err error) { b.Helper() if err != nil { b.Fatal(err) } } rpc := NewSingleHandler[*testRequest, *testResponse](handlerTest2, newTestRequest, newTestResponse) grid, err := SetupTestGrid(n) errFatal(err) b.Cleanup(grid.Cleanup) // Create n managers. for _, remote := range grid.Managers {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.7K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt
@Container val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE) val client = OkHttpClient.Builder() .trustMockServer() .build() @Test fun testRequest() { MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> mockServerClient .`when`( request().withPath("/person")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
.build() serverRule.server.useHttps(localhost.sslSocketFactory()) } @Test @Ignore("java.net.UnknownHostException: No results for localhost, in CI.") fun testRequest() { serverRule.server.enqueue(MockResponse()) val call = client.newCall(Request(serverRule.server.url("/"))) call.execute().use { response -> assertThat(response.code).isEqualTo(200) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
src/net/http/cgi/child_test.go
// Tests for CGI (the child process perspective) package cgi import ( "bufio" "bytes" "net/http" "net/http/httptest" "strings" "testing" ) func TestRequest(t *testing.T) { env := map[string]string{ "SERVER_PROTOCOL": "HTTP/1.1", "REQUEST_METHOD": "GET", "HTTP_HOST": "example.com", "HTTP_REFERER": "elsewhere", "HTTP_USER_AGENT": "goclient",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 14 15:42:03 UTC 2020 - 5.2K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
if (Build.VERSION.SDK_INT >= 29) { assertTrue(Platform.get() is Android10Platform) } else { assertTrue(Platform.get() is AndroidPlatform) } } @Test fun testRequest() { assumeNetwork() val request = Request.Builder().url("https://api.twitter.com/robots.txt").build() val clientCertificates = HandshakeCertificates.Builder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0)