Skip long cmd/tendermint/commands tests in -short mode

I added checks against testing.Short for tests that took longer than
about one second on my machine. Running with -short reduces the test
time of cmd/tendermint/commands from about 5.8s to about 0.5s.
This commit is contained in:
Mark Rushakoff
2022-07-22 13:57:33 -04:00
parent 7b853328c1
commit a730905d6e

View File

@@ -15,6 +15,10 @@ import (
)
func TestRollbackIntegration(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode")
}
var height int64
dir := t.TempDir()
ctx, cancel := context.WithCancel(context.Background())