TUN-3706: Quit if any origin service fails to start

This commit is contained in:
Adam Chalmers
2020-12-30 13:48:19 -06:00
parent 32336859f8
commit b855e33327
3 changed files with 13 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ func TestProxySingleOrigin(t *testing.T) {
var wg sync.WaitGroup
errC := make(chan error)
ingressRule.StartOrigins(&wg, &log, ctx.Done(), errC)
require.NoError(t, ingressRule.StartOrigins(&wg, &log, ctx.Done(), errC))
client := NewClient(ingressRule, testTags, &log)
t.Run("testProxyHTTP", testProxyHTTP(t, client))
@@ -256,7 +256,7 @@ func TestProxyMultipleOrigins(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
errC := make(chan error)
var wg sync.WaitGroup
ingress.StartOrigins(&wg, &log, ctx.Done(), errC)
require.NoError(t, ingress.StartOrigins(&wg, &log, ctx.Done(), errC))
client := NewClient(ingress, testTags, &log)