Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Apr 8, 2024
1 parent 11dfa15 commit 7e95abf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/server/api/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,13 @@ func (suite *ruleTestSuite) postAndCheckRuleBundle(urlPrefix string, bundle []pl
err = tu.CheckGetJSON(testDialClient, urlPrefix+"/config/placement-rule", nil,
tu.StatusOK(re), tu.ExtractJSON(re, &respBundle))
re.NoError(err)
// skip default rule check
for i := range respBundle {
if respBundle[i].ID == placement.DefaultGroupID {
respBundle = append(respBundle[:i], respBundle[i+1:]...)
break
}
}
if len(respBundle) != len(bundle) {
return false
}
Expand Down

0 comments on commit 7e95abf

Please sign in to comment.