From: qydysky Date: Sun, 14 May 2023 08:59:15 +0000 (+0800) Subject: add X-Git-Tag: v0.27.0~1 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=93328fd881466229f119693a2dff496522f966a1;p=part%2F.git add --- diff --git a/msgq/Msgq_test.go b/msgq/Msgq_test.go index 7cf06b5..033ffda 100644 --- a/msgq/Msgq_test.go +++ b/msgq/Msgq_test.go @@ -139,20 +139,20 @@ func BenchmarkXxx(b *testing.B) { } } -func TestPushLock(t *testing.T) { - defer func() { - if e := recover(); e != nil { - t.Fatal(e) - } - }() - mq := NewTo(time.Second) - mq.Pull_tag_only(`test`, func(a any) (disable bool) { - mq.PushLock_tag(`lock`, nil) - return false - }) - mq.Push_tag(`test`, nil) - t.Fatal() -} +// func TestPushLock(t *testing.T) { +// defer func() { +// if e := recover(); e != nil { +// t.Fatal(e) +// } +// }() +// mq := NewTo(time.Second) +// mq.Pull_tag_only(`test`, func(a any) (disable bool) { +// mq.PushLock_tag(`lock`, nil) +// return false +// }) +// mq.Push_tag(`test`, nil) +// t.Fatal() +// } func Benchmark_1(b *testing.B) { mq := NewTo(time.Second)