aboutsummaryrefslogtreecommitdiff
path: root/gorankusu_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-02-21 01:36:39 +0700
committerShulhan <ms@kilabit.info>2024-02-21 01:36:39 +0700
commitf8b6b66d9b407f7441a9170b46e42d928532f732 (patch)
tree4d385e39a04ecbc6280201856acaae1c8cbb9436 /gorankusu_test.go
parent9ca138628023b926ddf07cbd2e93562b8e782cf6 (diff)
downloadgorankusu-f8b6b66d9b407f7441a9170b46e42d928532f732.tar.xz
all: add parameter to use custom listen address in NewExample
This will allow running Example server with "make dev" and the test with "make" or "make test" at the same time.
Diffstat (limited to 'gorankusu_test.go')
-rw-r--r--gorankusu_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gorankusu_test.go b/gorankusu_test.go
index 3ff5f9e..9435acc 100644
--- a/gorankusu_test.go
+++ b/gorankusu_test.go
@@ -24,7 +24,7 @@ func TestMain(m *testing.M) {
// Mock crypto [rand.Reader] for predictable HTTP boundary.
rand.Reader = mock.NewRandReader([]byte(`gorankusu`))
- exGorankusu, err = NewExample()
+ exGorankusu, err = NewExample(``)
if err != nil {
log.Fatal(err)
}