Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Qiu <[email protected]>
  • Loading branch information
wenqiq committed Jan 25, 2024
1 parent 1c24f5b commit 5bad1ba
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/performance/framework/case.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,14 @@ func (c *ScaleTestCase) Run(ctx context.Context, testData *ScaleData) error {
res := "failed"
defer func() {
var rows [][]string
respTime := <-ch
rows = append(rows, table.GenerateRow(caseName, res, time.Since(startTime),
respTime.avg.String(), respTime.max.String(), respTime.min.String()))
table.ShowResult(os.Stdout, rows)
select {
case respTime := <-ch:
rows = append(rows, table.GenerateRow(caseName, res, time.Since(startTime),
respTime.avg.String(), respTime.max.String(), respTime.min.String()))
table.ShowResult(os.Stdout, rows)
case <-time.After(testData.checkTimeout):
klog.InfoS("wait timeout", "check time duration", testData.checkTimeout)
}
}()

done := make(chan interface{}, 1)
Expand Down

0 comments on commit 5bad1ba

Please sign in to comment.