Skip to content
quarry Artifact [6f3780a0ea]
Login

Artifact [6f3780a0ea]

Artifact 6f3780a0eacf61780ebf6b677db81b808525510f950abf56d54c6e715c1b8ea7:


package web

import "testing"

// The peak covers the reading on screen: a heap above every sample read
// "392 MB heap, peak 182 MB" on the page.
func TestThePeakIncludesTheHeapNow(t *testing.T) {
	if got := memPeak([]memSample{{Heap: 100}, {Heap: 182}}, 392); got != 392 {
		t.Errorf("FAIL: peak %d, want 392", got)
	} else {
		t.Log("ok: the peak includes the heap now")
	}
}