From 828078eb456a638ad7292109459cc0ad76de47be Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 28 Jun 2019 18:22:46 +0300 Subject: [PATCH] lib/memory: remove TestReadLXCMemoryLimit, since it doesnt work in Travis --- lib/memory/memory_linux_test.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 lib/memory/memory_linux_test.go diff --git a/lib/memory/memory_linux_test.go b/lib/memory/memory_linux_test.go deleted file mode 100644 index b74bb9858..000000000 --- a/lib/memory/memory_linux_test.go +++ /dev/null @@ -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) - } -}