mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: reorg agent config (#853)
* fn: reorg agent config *) Moving constants in agent to agent config, which helps with testing, tuning. *) Added max total cpu & memory for testing & clamping max mem & cpu usage if needed. * fn: adjust PipeIO time * fn: for hot, cannot reliably test EndOfLogs in TestRouteRunnerExecution
This commit is contained in:
@@ -99,7 +99,7 @@ func TestResourceAsyncWait(t *testing.T) {
|
||||
|
||||
var vals trackerVals
|
||||
|
||||
trI := NewResourceTracker()
|
||||
trI := NewResourceTracker(nil)
|
||||
|
||||
tr := trI.(*resourceTracker)
|
||||
|
||||
@@ -166,7 +166,7 @@ func TestResourceAsyncWait(t *testing.T) {
|
||||
func TestResourceGetSimple(t *testing.T) {
|
||||
|
||||
var vals trackerVals
|
||||
trI := NewResourceTracker()
|
||||
trI := NewResourceTracker(nil)
|
||||
tr := trI.(*resourceTracker)
|
||||
|
||||
vals.setDefaults()
|
||||
@@ -229,7 +229,7 @@ func TestResourceGetSimple(t *testing.T) {
|
||||
func TestResourceGetCombo(t *testing.T) {
|
||||
|
||||
var vals trackerVals
|
||||
trI := NewResourceTracker()
|
||||
trI := NewResourceTracker(nil)
|
||||
tr := trI.(*resourceTracker)
|
||||
|
||||
vals.setDefaults()
|
||||
|
||||
Reference in New Issue
Block a user