integration tests: run only those with connectivity

This commit is contained in:
pragmaxim
2026-01-23 09:44:22 +01:00
parent 3bcbe4403c
commit de9c4aa964

View File

@@ -49,7 +49,10 @@ func runIntegrationTests(t *testing.T) {
}
keys := make([]string, 0, len(tests))
for k := range tests {
for k, cfg := range tests {
if !hasConnectivity(cfg) {
continue
}
keys = append(keys, k)
}
sort.Strings(keys)
@@ -221,3 +224,8 @@ func requiresMempool(cfg map[string]json.RawMessage) bool {
}
return false
}
func hasConnectivity(cfg map[string]json.RawMessage) bool {
_, ok := cfg["connectivity"]
return ok
}