Skip to content

Commit b53a94f

Browse files
committed
fix CI issue
1 parent 6df5a04 commit b53a94f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/connect/envoy/helpers.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function assert_envoy_http_rbac_policy_count {
157157
local EXPECT_COUNT=$2
158158

159159
GOT_COUNT=$(get_envoy_http_rbac_once $HOSTPORT | jq '.rules.policies | length')
160-
[ "$GOT_COUNT" -eq $EXPECT_COUNT ]
160+
[ "${GOT_COUNT:-0}" -eq $EXPECT_COUNT ]
161161
}
162162

163163
function get_envoy_http_rbac_once {
@@ -181,7 +181,7 @@ function assert_envoy_network_rbac_policy_count {
181181
local EXPECT_COUNT=$2
182182

183183
GOT_COUNT=$(get_envoy_network_rbac_once $HOSTPORT | jq '.rules.policies | length')
184-
[ "$GOT_COUNT" -eq $EXPECT_COUNT ]
184+
[ "${GOT_COUNT:-0}" -eq $EXPECT_COUNT ]
185185
}
186186

187187
function get_envoy_network_rbac_once {

0 commit comments

Comments
 (0)