Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Jun 10, 2024
1 parent 30e78db commit ebebda4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .changelog/23259.txt

This file was deleted.

2 changes: 1 addition & 1 deletion nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,7 @@ func (r *Resources) Validate() error {
}

if r.OOMScoreAdj < 0 {
mErr.Errors = append(mErr.Errors, fmt.Errorf("OOMScoreAdj value (%d) must be a positive integer", r.OOMScoreAdj))
mErr.Errors = append(mErr.Errors, fmt.Errorf("OOMScoreAdj value (%d) must not be negative", r.OOMScoreAdj))
}

return mErr.ErrorOrNil()
Expand Down
2 changes: 1 addition & 1 deletion nomad/structs/structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2229,7 +2229,7 @@ func TestTask_Validate_Resources(t *testing.T) {
res: &Resources{
OOMScoreAdj: -3,
},
err: "OOMScoreAdj value (-3) must be a positive integer",
err: "OOMScoreAdj value (-3) must not be negative",
},
}

Expand Down

0 comments on commit ebebda4

Please sign in to comment.