mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/memory: remove TestReadLXCMemoryLimit, since it doesnt work in Travis
This commit is contained in:
parent
7b59466667
commit
828078eb45
1 changed files with 0 additions and 19 deletions
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue