1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

chore(tests) add Short() -> SkipNow() to slowest tests

vanilla:
    21.57 real        45.14 user         8.51 sys

short:
    14.40 real        31.13 user         5.56 sys

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-11-15 00:19:47 -08:00
committed by Juan Batiz-Benet
parent 25b3106e41
commit ed4a8eb782
14 changed files with 87 additions and 11 deletions

View File

@ -115,7 +115,9 @@ func (f *fauxNet) GetBandwidthTotals() (uint64, uint64) {
func (f *fauxNet) Close() error { return nil }
func TestGetFailures(t *testing.T) {
// t.Skip("skipping test because it makes a lot of output")
if testing.Short() {
t.SkipNow()
}
ctx := context.Background()
fn := &fauxNet{}
@ -211,7 +213,9 @@ func _randPeer() peer.Peer {
}
func TestNotFound(t *testing.T) {
// t.Skip("skipping test because it makes a lot of output")
if testing.Short() {
t.SkipNow()
}
ctx := context.Background()
fn := &fauxNet{}