From 6a05f8614c1e763d8af85d83f29cec1efe5470ce Mon Sep 17 00:00:00 2001 From: fantasticbin Date: Wed, 20 Nov 2024 15:04:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AB=8B=E5=8D=B3=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E5=AE=9A=E6=97=B6=E5=99=A8=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ticker/ticker_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ticker/ticker_test.go b/ticker/ticker_test.go index 7750a80..a6114e7 100644 --- a/ticker/ticker_test.go +++ b/ticker/ticker_test.go @@ -8,13 +8,7 @@ import ( func TestTicker(t *testing.T) { now := time.Now() - // 记录初始时间 - data := []int64{ - now.Unix(), - } - expected := []int64{ - now.Unix(), - } + var data, expected []int64 // 预期每隔一秒收到一个信号 for i := 0; i < 3; i++ {