]> 127.0.0.1 Git - part/.git/commitdiff
add
authorqydysky <qydysky@foxmail.com>
Sun, 14 May 2023 08:59:15 +0000 (16:59 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 14 May 2023 08:59:15 +0000 (16:59 +0800)
msgq/Msgq_test.go

index 7cf06b5af51e32fc1be07990ee7ca1c6b2caace7..033ffda81ce393bf0b70901e0362eb061e81c7e5 100644 (file)
@@ -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)