mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-19 16:31:19 +01:00
integration tests: run only those with connectivity
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user