diff options
Diffstat (limited to 'lilin_test.go')
| -rw-r--r-- | lilin_test.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lilin_test.go b/lilin_test.go index 804bc3c..ba1c069 100644 --- a/lilin_test.go +++ b/lilin_test.go @@ -84,6 +84,22 @@ func TestServer_handleServicesSummary(t *testing.T) { t.Fatal(err) } - var expSummary []lilin.Service + var expSummary = []lilin.Service{{ + Name: `example http`, + Type: `http`, + Method: `GET`, + Address: `http://127.0.0.1:6121/health`, + Timeout: `5s`, + }, { + Name: `example tcp`, + Type: `tcp`, + Address: `127.0.0.1:6122`, + Timeout: `5s`, + }, { + Name: `example udp`, + Type: `udp`, + Address: `127.0.0.1:6123`, + Timeout: `5s`, + }} test.Assert(t, `ServicesSummary`, expSummary, gotSummary) } |
