summaryrefslogtreecommitdiff
path: root/internal/discovery
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2024-05-06 14:47:43 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-24 13:25:11 +0200
commit921b7f6449c32c5788e43c128ab9f46683dba8e8 (patch)
tree6260046a537f45579e568d7d8f251ff1efda7800 /internal/discovery
parenta2ee44b700d6f094bbf887c8cfb4734da3e3cb3f (diff)
Test Server: Add helpers for response handlers
Diffstat (limited to 'internal/discovery')
-rw-r--r--internal/discovery/discovery_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/discovery/discovery_test.go b/internal/discovery/discovery_test.go
index 317aa50..495efd2 100644
--- a/internal/discovery/discovery_test.go
+++ b/internal/discovery/discovery_test.go
@@ -15,7 +15,7 @@ import (
// It setups up a file server using the 'test_files' directory
func TestServers(t *testing.T) {
handler := http.FileServer(http.Dir("test_files"))
- s := test.NewServer(handler)
+ s := test.NewServer(handler, nil)
DiscoURL = s.URL
c, err := s.Client()
if err != nil {
@@ -57,7 +57,7 @@ func TestServers(t *testing.T) {
// It setups up a file server using the 'test_files' directory
func TestOrganizations(t *testing.T) {
handler := http.FileServer(http.Dir("test_files"))
- s := test.NewServer(handler)
+ s := test.NewServer(handler, nil)
DiscoURL = s.URL
c, err := s.Client()
if err != nil {