Этот коммит содержится в:
Ben Schumacher
2023-10-11 10:13:36 +02:00
коммит произвёл GitHub
родитель 176370e175
Коммит 0d5a8b8841
189 изменённых файлов: 1 добавлений и 361 удалений

Просмотреть файл

@@ -126,7 +126,6 @@ func TestClient4RequestCancellation(t *testing.T) {
})
t.Run("cancel after making the reqeust", func(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(100 * time.Millisecond)
t.Fatal("request should not hit the server")
@@ -144,7 +143,6 @@ func TestClient4RequestCancellation(t *testing.T) {
assert.Nil(t, resp)
done <- struct{}{}
}()
cancel()