diff --git a/tests/integration.go b/tests/integration.go index 225a5736..e0483472 100644 --- a/tests/integration.go +++ b/tests/integration.go @@ -16,6 +16,7 @@ import ( "os" "path/filepath" "reflect" + "sort" "testing" "github.com/jakm/btcutil/chaincfg" @@ -36,7 +37,14 @@ func runIntegrationTests(t *testing.T) { t.Fatal(err) } - for coin, cfg := range tests { + keys := make([]string, 0, len(tests)) + for k := range tests { + keys = append(keys, k) + } + sort.Strings(keys) + + for _, coin := range keys { + cfg := tests[coin] t.Run(coin, func(t *testing.T) { runTests(t, coin, cfg) }) }