pass errors from broker to subscribers
Some checks failed
test / test (push) Failing after 17m57s
coverage / build (push) Failing after 18m10s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-12-02 22:08:09 +03:00
parent bac736deef
commit c8eeb34efe
5 changed files with 195 additions and 39 deletions

View File

@@ -17,7 +17,7 @@ import (
)
var (
msgcnt = int64(1200)
msgcnt = int64(10)
group = "38"
prefill = true
loglevel = logger.DebugLevel
@@ -80,7 +80,7 @@ func TestFail(t *testing.T) {
for _, msg := range msgs {
t.Logf("broker publish")
if err := b.Publish(ctx, "test", msg); err != nil {
t.Fatal(err)
break
}
}
// t.Skip()
@@ -108,7 +108,7 @@ func TestFail(t *testing.T) {
for {
t.Logf("health check")
if !b.Health() {
if b.Health() {
t.Logf("health works")
break
}