]> 127.0.0.1 Git - part/.git/commitdiff
add v0.28.0+20230730f9f4c80
authorqydysky <qydysky@foxmail.com>
Sun, 30 Jul 2023 07:04:13 +0000 (15:04 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 30 Jul 2023 07:04:13 +0000 (15:04 +0800)
msgq/Msgq_test.go

index 5fb2664e0bf7fbb69648b5c0e0cdb5691ba0f084..b00ca07d3fd98bb59e272ef2bae8f63b380d4877 100644 (file)
@@ -165,6 +165,18 @@ func Benchmark_1(b *testing.B) {
        }
 }
 
+func Test_4(t *testing.T) {
+       mq := New()
+       cancel := mq.Pull_tag(FuncMap{
+               `del`: func(a any) (disable bool) {
+                       return true
+               },
+       })
+       time.Sleep(time.Millisecond * 500)
+       mq.PushLock_tag(`del`, nil)
+       cancel()
+}
+
 func Test_2(t *testing.T) {
        mq := New()
        cancel := mq.Pull_tag(FuncMap{