fix(phase-15): update register tests for 67 total sources (Phase 10-15)

This commit is contained in:
salvacybersec
2026-04-06 16:37:48 +03:00
parent 748efd6691
commit 83a1e83ae5
4 changed files with 26 additions and 9 deletions

View File

@@ -674,8 +674,8 @@ func TestIntegration_AllSources_SweepAll(t *testing.T) {
eng.Register(&JSBundleSource{BaseURL: srv.URL + "/jsbundle", Registry: reg, Limiters: nil, Client: NewClient()})
// Sanity: all 52 sources registered.
if n := len(eng.List()); n != 52 {
t.Fatalf("expected 52 sources on engine, got %d: %v", n, eng.List())
if n := len(eng.List()); n != 67 {
t.Fatalf("expected 67 sources on engine, got %d: %v", n, eng.List())
}
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
@@ -780,8 +780,8 @@ func TestRegisterAll_Phase12(t *testing.T) {
})
names := eng.List()
if n := len(names); n != 52 {
t.Fatalf("expected 52 sources from RegisterAll, got %d: %v", n, names)
if n := len(names); n != 67 {
t.Fatalf("expected 67 sources from RegisterAll, got %d: %v", n, names)
}
// Build lookup for source access.