aboutsummaryrefslogtreecommitdiff
path: root/kbbi_test.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-04-05 15:24:11 +0700
committerShulhan <m.shulhan@gmail.com>2020-04-05 15:24:11 +0700
commit79649636835eba0ea309c1208c1056b3e98d244a (patch)
treefbb201fca8fc365c75f87c35d446d64a24732c3d /kbbi_test.go
parent46d02f63fd53cebecbd02417a8d3e9f1629e23d3 (diff)
downloadkamusku-79649636835eba0ea309c1208c1056b3e98d244a.tar.xz
server: add parameter to load dictionary storage
Diffstat (limited to 'kbbi_test.go')
-rw-r--r--kbbi_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/kbbi_test.go b/kbbi_test.go
index ddd4efe..7d9a783 100644
--- a/kbbi_test.go
+++ b/kbbi_test.go
@@ -11,7 +11,8 @@ import (
)
const (
- testServerAPI = "http://127.0.0.1" + defListen
+ testServerAPI = "http://127.0.0.1" + defListen
+ testKamusStorage = "testdata/kamus.gob"
)
//nolint: gochecknoglobals
@@ -41,7 +42,7 @@ func TestMain(m *testing.M) {
var err error
// Run the local server to test the apiClient.
- testServer, err = NewServer()
+ testServer, err = NewServer(testKamusStorage)
if err != nil {
log.Fatal(err)
}