Skip to content

Commit

Permalink
Add test for dynamic placeholder via restream
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Oct 29, 2024
1 parent 2393dbc commit dd8906e
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 41 deletions.
12 changes: 12 additions & 0 deletions internal/mock/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ func New() resources.Resources {

return res
}

func NewWithLimits() resources.Resources {
res, _ := resources.New(resources.Config{
MaxCPU: 100,
MaxMemory: 100,
MaxGPU: 100,
MaxGPUMemory: 100,
PSUtil: psutil.New(1),
})

return res
}
Loading

0 comments on commit dd8906e

Please sign in to comment.