github.com/gopherjs/gopherjs@v1.19.0-beta1.0.20240506212314-27071a8796e4/compiler/natives/src/net/http/client_test.go (about) 1 //go:build js 2 3 package http_test 4 5 import ( 6 "testing" 7 ) 8 9 func testClientTimeout(t *testing.T, h2 bool) { 10 // The original test expects Client.Timeout error to be returned, but under 11 // GopherJS an "i/o timeout" error is frequently returned. Otherwise the test 12 // seems to be working correctly. 13 t.Skip("Flaky test under GopherJS.") 14 } 15 16 func testClientTimeout_Headers(t *testing.T, h2 bool) { 17 // The original test expects Client.Timeout error to be returned, but under 18 // GopherJS an "i/o timeout" error is frequently returned. Otherwise the test 19 // seems to be working correctly. 20 t.Skip("Flaky test under GopherJS.") 21 }