diff options
Diffstat (limited to 'service_test.go')
| -rw-r--r-- | service_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service_test.go b/service_test.go index bd58b91..aeb1562 100644 --- a/service_test.go +++ b/service_test.go @@ -14,11 +14,11 @@ import ( func TestServiceStart_HTTP(t *testing.T) { type testCase struct { expReport lilin.ScanReport - opts lilin.ServiceOptions + cfg lilin.ServiceConfig } var listCase = []testCase{{ - opts: lilin.ServiceOptions{ + cfg: lilin.ServiceConfig{ Name: `http_service`, Address: `http://` + dummyHTTPAddress + `/health`, }, @@ -31,7 +31,7 @@ func TestServiceStart_HTTP(t *testing.T) { var reportq = make(chan lilin.ScanReport, 1) for _, tcase := range listCase { - svc, err := lilin.NewService(tcase.opts) + svc, err := lilin.NewService(tcase.cfg) if err != nil { t.Fatal(err) } |
