fix: address code review findings

This commit is contained in:
2026-07-20 00:05:22 +03:00
parent ce1c39e14b
commit e0211343e0
7 changed files with 159 additions and 53 deletions

View File

@@ -80,7 +80,7 @@ func TestDataFlowSmoke(t *testing.T) {
}}
tgCfg := config.TelegramConfig{Enabled: true}
n1, err := notifier.NotifyOnce(ctx, db, stub, tgCfg, "http://localhost:8080")
n1, err := notifier.NotifyOnce(ctx, db, stub, tgCfg, "http://localhost:8080", 0.85)
if err != nil {
t.Fatalf("NotifyOnce #1: %v", err)
}
@@ -91,7 +91,7 @@ func TestDataFlowSmoke(t *testing.T) {
t.Fatalf("digest missing expected content: %v", sent)
}
n2, err := notifier.NotifyOnce(ctx, db, stub, tgCfg, "http://localhost:8080")
n2, err := notifier.NotifyOnce(ctx, db, stub, tgCfg, "http://localhost:8080", 0.85)
if err != nil {
t.Fatalf("NotifyOnce #2: %v", err)
}