Add missing nil check in test

pull/3205/head
Jeff Mitchell 3 years ago
parent f9f7ee2cc4
commit 037dc0cf18

@ -117,7 +117,7 @@ func TestWorkerList_EgressFilter(t *testing.T) {
if len(tc.filter) > 0 {
target.EgressWorkerFilter = tc.filter
}
out, _, err := AuthorizeSessionWithWorkerFilter(ctx, target, tc.in, "", nil)
out, protocolWorker, err := AuthorizeSessionWithWorkerFilter(ctx, target, tc.in, "", nil)
if tc.errContains != "" {
assert.Contains(err.Error(), tc.errContains)
assert.Nil(out)
@ -129,6 +129,7 @@ func TestWorkerList_EgressFilter(t *testing.T) {
for i, exp := range tc.out {
assert.Equal(exp.Name, out[i].Name)
}
require.Nil(protocolWorker)
})
}
}

Loading…
Cancel
Save