Prechádzať zdrojové kódy

More aggressive test.

Richard Crowley 12 rokov pred
rodič
commit
995afca8b0
2 zmenil súbory, kde vykonal 0 pridanie a 4 odobranie
  1. 0 2
      debug_test.go
  2. 0 2
      runtime_test.go

+ 0 - 2
debug_test.go

@@ -3,7 +3,6 @@ package metrics
 import (
 	"runtime/debug"
 	"testing"
-	"time"
 )
 
 func BenchmarkDebugGCStats(b *testing.B) {
@@ -26,7 +25,6 @@ func TestDebugGCStatsBlocking(t *testing.T) {
 			default:
 				i++
 			}
-			time.Sleep(1e3)
 		}
 	}()
 	var gcStats debug.GCStats

+ 0 - 2
runtime_test.go

@@ -3,7 +3,6 @@ package metrics
 import (
 	"runtime"
 	"testing"
-	"time"
 )
 
 func BenchmarkRuntimeMemStats(b *testing.B) {
@@ -26,7 +25,6 @@ func TestRuntimeMemStatsBlocking(t *testing.T) {
 			default:
 				i++
 			}
-			time.Sleep(1e3)
 		}
 	}()
 	var memStats runtime.MemStats