Skip to content

Commit

Permalink
test(configs): enable fail-fast validation in bootstrap_default_test
Browse files Browse the repository at this point in the history
- Update protovalidate initialization to use fail-fast mode
- This change improves test efficiency by stopping validation on first error
  • Loading branch information
godcong committed Nov 8, 2024
1 parent fd3cbff commit 5b1d912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/configs/bootstrap_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestValidate(t *testing.T) {
Mode: "other",
}

v, err = protovalidate.New()
v, err = protovalidate.New(protovalidate.WithFailFast(true))
if err != nil {
fmt.Println("failed to initialize validator:", err)
}
Expand Down

0 comments on commit 5b1d912

Please sign in to comment.