File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
* .so
13
13
* .dylib
14
14
15
+ # Test artifacts
16
+ httpmock-record.yml
17
+
15
18
# Test binary, built with `go test -c`
16
19
* .test
17
20
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ func ExampleActivateRecorder() {
28
28
// Start a simple HTTP server
29
29
runHTTP ()
30
30
31
- resp , err := http .Get ("http://localhost:8080/test" ) // nolint:noctx
31
+ // Do any HTTP request
32
+ resp , err := http .Get ("http://localhost:64888/test" ) // nolint:noctx
32
33
if err != nil {
33
34
fmt .Println (err )
34
35
os .Exit (1 )
@@ -47,7 +48,7 @@ func ExampleActivateRecorder() {
47
48
// Output:
48
49
// Hello World
49
50
// ---
50
- // url: http://localhost:8080 /test
51
+ // url: http://localhost:64888 /test
51
52
// method: GET
52
53
// query: ""
53
54
// status: 200 OK
@@ -59,5 +60,5 @@ func runHTTP() {
59
60
_ , _ = io .WriteString (w , `Hello World` )
60
61
})
61
62
62
- go http .ListenAndServe (":8080 " , nil ) //nolint:errcheck
63
+ go http .ListenAndServe (":64888 " , nil ) //nolint:errcheck
63
64
}
You can’t perform that action at this time.
0 commit comments