aboutsummaryrefslogtreecommitdiff
path: root/lib/http/example_server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/http/example_server_test.go')
-rw-r--r--lib/http/example_server_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/http/example_server_test.go b/lib/http/example_server_test.go
index 2c886f27..aad952aa 100644
--- a/lib/http/example_server_test.go
+++ b/lib/http/example_server_test.go
@@ -60,7 +60,10 @@ func ExampleServer_customHTTPStatusCode() {
// Wait for the server fully started.
time.Sleep(1 * time.Second)
- client := NewClient("http://127.0.0.1:8123", nil, false)
+ clientOpts := &ClientOptions{
+ ServerUrl: "http://127.0.0.1:8123",
+ }
+ client := NewClient(clientOpts)
httpRes, resBody, err := client.PostJSON(epCustom.Path, nil, nil)
if err != nil {