Browse Source

chore(test): increase portable test timeout

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Jiyong Huang 3 years atrás
parent
commit
76df751933
1 changed files with 2 additions and 2 deletions
  1. 2 2
      internal/plugin/portable/test/portable_rule_test.go

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

@@ -1,4 +1,4 @@
-// Copyright 2021 EMQ Technologies Co., Ltd.
+// Copyright 2021-2022 EMQ Technologies Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -120,7 +120,7 @@ func TestSourceAndFunc(t *testing.T) {
 			t.Errorf("fail to init rule: %v", err)
 			continue
 		}
-		ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
+		ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
 		go func(ctx context.Context) {
 			select {
 			case err := <-tp.Open():