Skip to content

Commit

Permalink
chore: add more timewait for protable test to avoid failure
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Aug 9, 2022
1 parent 023b2a6 commit 59586eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/portable/test/portable_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestSourceAndFunc(t *testing.T) {
if compareMetrics(tp, tt.M) {
cancel()
// need to wait for file results
time.Sleep(500 * time.Millisecond)
time.Sleep(1 * time.Second)
results := getResults(fmt.Sprintf("cache%d", i+1))
fmt.Printf("get results %v\n", results)
time.Sleep(10 * time.Millisecond)
Expand Down

0 comments on commit 59586eb

Please sign in to comment.