Commit e1f81b78 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

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: default avatarBrian Tiger Chow <brian@perfmode.com>
parent ef134e0c
......@@ -231,7 +231,9 @@ func TestProvides(t *testing.T) {
}
func TestProvidesAsync(t *testing.T) {
// t.Skip("skipping test to debug another")
if testing.Short() {
t.SkipNow()
}
ctx := context.Background()
u.Debug = false
......@@ -295,7 +297,9 @@ func TestProvidesAsync(t *testing.T) {
}
func TestLayeredGet(t *testing.T) {
// t.Skip("skipping test to debug another")
if testing.Short() {
t.SkipNow()
}
ctx := context.Background()
u.Debug = false
......@@ -347,7 +351,9 @@ func TestLayeredGet(t *testing.T) {
}
func TestFindPeer(t *testing.T) {
// t.Skip("skipping test to debug another")
if testing.Short() {
t.SkipNow()
}
ctx := context.Background()
u.Debug = false
......@@ -391,7 +397,9 @@ func TestFindPeer(t *testing.T) {
}
func TestConnectCollision(t *testing.T) {
// t.Skip("skipping test to debug another")
if testing.Short() {
t.SkipNow()
}
runTimes := 10
......
......@@ -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{}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment