mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-04 07:07:13 +00:00
Skip long light 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 light from about 21s to about 0.9s.
This commit is contained in:
@@ -17,6 +17,10 @@ import (
|
||||
|
||||
// Manually getting light blocks and verifying them.
|
||||
func TestExampleClient(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping test in short mode")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
conf, err := rpctest.CreateConfig(t, "ExampleClient_VerifyLightBlockAtHeight")
|
||||
|
||||
Reference in New Issue
Block a user