Browse Source

chore: add more timewait for protable test to avoid failure

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 2 years ago
parent
commit
59586ebc74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/plugin/portable/test/portable_rule_test.go

+ 1 - 1
internal/plugin/portable/test/portable_rule_test.go

@@ -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)