aboutsummaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker_test.go')
-rw-r--r--worker_test.go19
1 files changed, 11 insertions, 8 deletions
diff --git a/worker_test.go b/worker_test.go
index 83fcc69..46e7cd3 100644
--- a/worker_test.go
+++ b/worker_test.go
@@ -39,6 +39,7 @@ func TestNewWorker(t *testing.T) {
Address: `http://127.0.0.1:6121/health`,
Timeout: `5s`,
timeout: 5 * time.Second,
+ interval: defInterval,
},
},
`example tcp`: &Service{
@@ -47,10 +48,11 @@ func TestNewWorker(t *testing.T) {
Scheme: `tcp`,
Host: `127.0.0.1:6122`,
},
- Name: `example tcp`,
- Address: `tcp://127.0.0.1:6122`,
- Timeout: `5s`,
- timeout: 5 * time.Second,
+ Name: `example tcp`,
+ Address: `tcp://127.0.0.1:6122`,
+ Timeout: `5s`,
+ timeout: 5 * time.Second,
+ interval: defInterval,
},
},
`example udp`: &Service{
@@ -59,10 +61,11 @@ func TestNewWorker(t *testing.T) {
Scheme: `udp`,
Host: `127.0.0.1:6123`,
},
- Name: `example udp`,
- Address: `udp://127.0.0.1:6123`,
- Timeout: `5s`,
- timeout: 5 * time.Second,
+ Name: `example udp`,
+ Address: `udp://127.0.0.1:6123`,
+ Timeout: `5s`,
+ timeout: 5 * time.Second,
+ interval: defInterval,
},
},
},