Skip to content

Commit

Permalink
update defer
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jun 24, 2024
1 parent 484bdc8 commit 532c9bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/validator_service/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func TestValidatorService(t *testing.T) {
}

func testValidateStrategy(t *testing.T, strategy *model.Strategy, request *model.UserOpRequest) {
if err := ValidateStrategy(strategy, request); err != nil {
if err := ValidateStrategy(strategy, request, &model.ApiKeyModel{
UserId: 5,
}); err != nil {
t.Fatalf("ValidateStrategy error: %v", err)
}
}
Expand Down

0 comments on commit 532c9bd

Please sign in to comment.