Skip to content

Commit 7399b85

Browse files
committed
api/http_lifecycle: fix net/http integration
1 parent 8887924 commit 7399b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/http_lifecycle_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package api_test
22

33
import (
44
"io/ioutil"
5+
"net/http"
56
"net/http/httptest"
67
"net/url"
78
"testing"
@@ -65,7 +66,7 @@ func TestHttpLifecycleExecutesRequestWithoutBody(t *testing.T) {
6566
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
6667
called = true
6768

68-
assert.Equal(t, "/path", r.Path.RelativeURI())
69+
assert.Equal(t, "/path", r.URL.RequestURI())
6970
}))
7071
defer server.Close()
7172

0 commit comments

Comments
 (0)