aboutsummaryrefslogtreecommitdiff
path: root/lib/http/client_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-08 02:52:16 +0700
committerShulhan <ms@kilabit.info>2024-03-09 01:10:24 +0700
commit29343294a596fd74f6f9cb917c8aac74ccb78094 (patch)
treee9286ed53041b973cb6d767325034f30e504e1f5 /lib/http/client_test.go
parent4e35c509a41cecb207bf6f52e7c9a529fa9f71fb (diff)
downloadpakakeh.go-29343294a596fd74f6f9cb917c8aac74ccb78094.tar.xz
lib/http: refactoring NewServer and NewClient
The NewServer and NewClient now accept non-pointer options, so the caller unable to modify the options once the server or client has been created.
Diffstat (limited to 'lib/http/client_test.go')
-rw-r--r--lib/http/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http/client_test.go b/lib/http/client_test.go
index 56ff4333..021d309e 100644
--- a/lib/http/client_test.go
+++ b/lib/http/client_test.go
@@ -18,7 +18,7 @@ func TestClient_Download(t *testing.T) {
clientOpts = ClientOptions{
ServerURL: `http://` + testServer.Options.Address,
}
- client = NewClient(&clientOpts)
+ client = NewClient(clientOpts)
out bytes.Buffer
err error