Skip to content

Commit

Permalink
fix(testutil): default gpu units to 0 (#1808)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian authored May 2, 2023
1 parent ba02143 commit 8157808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testutil/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func Resources(t testing.TB) []dtypes.Resource {
CPU: &types.CPU{
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().MinUnitCPU)),
},
GPU: &types.GPU{
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().MinUnitGPU)),
},
Memory: &types.Memory{
Quantity: types.NewResourceValue(dtypes.GetValidationConfig().MinUnitMemory),
},
Expand Down

0 comments on commit 8157808

Please sign in to comment.