Blame view

common/components/timewheel_test.go 226 Bytes
0e5d52de   zhangqijia   reactor: 重构底层框架1.0
1
  package components
0cc58315   zhangqijia   添加定时器, 检查心跳
2
3
4
5
6
7
  
  import (
  	"fmt"
  	"testing"
  	"time"
  )
0cc58315   zhangqijia   添加定时器, 检查心跳
8
  
6f0d72bd   zhangqijia   定时器功能完善优化
9
10
  func PRINT()  {
  	fmt.Println("12312312312")
0cc58315   zhangqijia   添加定时器, 检查心跳
11
12
  }
  
6f0d72bd   zhangqijia   定时器功能完善优化
13
14
15
16
17
  func TestTimeWheel_Start(t *testing.T) {
  	TimeOut(1 * time.Second, func() {
  		fmt.Println("12312313123")
  	})
  	select{}
0cc58315   zhangqijia   添加定时器, 检查心跳
18
  }