From 46430861ce8d8a757de107e465c252f253c275bd Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 05:32:36 -0500 Subject: [PATCH] test(crux/lanes): drop TestValidateNamesFailingField subsumed by bounds table Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- src/crux/lanes/config_duration_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/crux/lanes/config_duration_test.go b/src/crux/lanes/config_duration_test.go index 9419409dde..31fe93650c 100644 --- a/src/crux/lanes/config_duration_test.go +++ b/src/crux/lanes/config_duration_test.go @@ -56,15 +56,3 @@ func TestLoadConfigSurfacesDurationError(t *testing.T) { } } -func TestValidateNamesFailingField(t *testing.T) { - c := Config{URL: "nats://localhost:4222", Principals: []Principal{{Project: "atlas", TokenEnv: "ATLAS_TOKEN"}}} - c.Defaults() - if err := c.Validate(); err != nil { - t.Fatal(err) - } - c.MaxPending = -1 - err := c.Validate() - if !errors.Is(err, ErrInvalid) || !strings.Contains(err.Error(), "max_pending") { - t.Fatalf("expected max_pending error, got %v", err) - } -}