diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-08 02:52:16 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-09 01:10:24 +0700 |
| commit | 29343294a596fd74f6f9cb917c8aac74ccb78094 (patch) | |
| tree | e9286ed53041b973cb6d767325034f30e504e1f5 /lib/http/client_test.go | |
| parent | 4e35c509a41cecb207bf6f52e7c9a529fa9f71fb (diff) | |
| download | pakakeh.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.go | 2 |
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 |
