chore: bump deps and modernize test loops

- release.yml: download-artifact v7 -> v8
- frontend: i18next 26.3.1 -> 26.3.2, qs 6.15.2 -> 6.15.3
- go.mod: consolidate indirect requires (go mod tidy)
- tests: adopt Go 1.22 range-over-int loops
This commit is contained in:
MHSanaei
2026-06-26 00:10:30 +02:00
parent e27f2490b2
commit dc6d13b58f
8 changed files with 418 additions and 420 deletions
+2 -2
View File
@@ -367,7 +367,7 @@ func TestMonitorNilRecoverStaysBounded(t *testing.T) {
monitor := newWithClient(cfg, failingClient(), nil)
for i := 0; i < 5; i++ {
for range 5 {
recovered, _ := monitor.Step(context.Background())
if recovered {
t.Fatal("a nil recovery func must never report recovery")
@@ -402,7 +402,7 @@ func TestMonitorFailuresCappedDuringCooldown(t *testing.T) {
t.Fatal("expected recovery once the threshold is reached")
}
for i := 0; i < 6; i++ {
for range 6 {
monitor.Step(context.Background())
if monitor.failures > cfg.FailureThreshold {
t.Fatalf("failures must never exceed threshold %d during cooldown, got %d", cfg.FailureThreshold, monitor.failures)