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