lib/memory: remove TestReadLXCMemoryLimit, since it doesnt work in Travis

This commit is contained in:
Aliaksandr Valialkin 2019-06-28 18:22:46 +03:00
parent 7b59466667
commit 828078eb45

View file

@ -1,19 +0,0 @@
package memory
import (
"testing"
)
func TestReadLXCMemoryLimit(t *testing.T) {
const maxMem = 1<<31 - 1
n, err := readLXCMemoryLimit(maxMem)
if err != nil {
t.Fatalf("unexpected error in readLXCMemoryLimit: %s", err)
}
if n < 0 {
t.Fatalf("n must be positive; got %d", n)
}
if n > maxMem {
t.Fatalf("n must be smaller than maxMem=%d; got %d", maxMem, n)
}
}