You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
297 B
18 lines
297 B
1 month ago
|
package group
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func Test_GroupDueTask_s(t *testing.T) {
|
||
|
// 创建分组超时任务对象
|
||
|
dt := NewBaseDueTask()
|
||
|
time.Sleep(time.Second * 5)
|
||
|
|
||
|
fmt.Println("Is Timeout:", dt.IsTimeout())
|
||
|
fmt.Println("Elapsed Seconds:", dt.ElapsedSecs())
|
||
|
dt.SetTimeout()
|
||
|
}
|