Skip to content

Commit

Permalink
Sleep for 30 secs before flush cycles for collectd metrics (#210)
Browse files Browse the repository at this point in the history
Sleep for 30 secs before flush cycles for collectd metrics (#210)
  • Loading branch information
sky333999 authored May 9, 2023
1 parent 8179a4c commit 737cef1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/common/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func SendCollectDMetrics(metricPerInterval int, sendingInterval, duration time.D
}
}

time.Sleep(30 * time.Second)

if err := client.Flush(); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_runner/base_test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (t *TestRunner) Run(s ITestSuite) {
}
s.AddToSuiteResult(testGroupResult)
if testGroupResult.GetStatus() != status.SUCCESSFUL {
log.Printf("%v test group failed", testName)
log.Printf("%v test group failed due to %v", testName, err)
}
}

Expand Down

0 comments on commit 737cef1

Please sign in to comment.