mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
Add remaining terminating gateway tests for namespaces
Co-Authored-By: Daniel Nephin <dnephin@hashicorp.com>
This commit is contained in:
parent
701285e470
commit
db572aca59
@ -1699,7 +1699,9 @@ func testServiceRegistration(t *testing.T, svc string, opts ...regOption) *struc
|
||||
})
|
||||
for _, opt := range opts {
|
||||
err := opt(r)
|
||||
require.NoError(t, err)
|
||||
if err != nil {
|
||||
t.Fatalf("expected no error, got %v", err)
|
||||
}
|
||||
}
|
||||
return r
|
||||
}
|
||||
@ -1727,8 +1729,9 @@ func testServiceHealthEvent(t *testing.T, svc string, opts ...eventOption) strea
|
||||
func testServiceHealthDeregistrationEvent(t *testing.T, svc string, opts ...eventOption) stream.Event {
|
||||
e := newTestEventServiceHealthDeregister(100, 1, svc)
|
||||
for _, opt := range opts {
|
||||
err := opt(&e)
|
||||
require.NoError(t, err)
|
||||
if err := opt(&e); err != nil {
|
||||
t.Fatalf("expected no error, got %v", err)
|
||||
}
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user