package discovery import "testing" func TestMemoryBandwidthIsMeasured(t *testing.T) { if testing.Short() { t.Skip("reads half a gigabyte") } bw := MeasureMemoryBandwidth() // Any machine running this reads more than a gigabyte a second and less // than a few terabytes. if bw < 1 || bw > 5000 { t.Errorf("measured %.1f GB/s", bw) } t.Logf("%.1f GB/s", bw) }