Răsfoiți Sursa

Update "elasticsearch-basics" test to explicitly set a low memory limit (instead of the 2GB default)

Tianon Gravi 9 ani în urmă
părinte
comite
eb2212a0e8
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      test/tests/elasticsearch-basics/run.sh

+ 2 - 1
test/tests/elasticsearch-basics/run.sh

@@ -12,7 +12,8 @@ image="$1"
 clientImage="$image"
 clientImage="$image"
 
 
 # Create an instance of the container-under-test
 # Create an instance of the container-under-test
-cid="$(docker run -d "$image")"
+# (explicitly setting a low memory limit since the image defaults to 2GB)
+cid="$(docker run -d -e ES_JAVA_OPTS='-Xms32m -Xmx32m' "$image")"
 trap "docker rm -vf $cid > /dev/null" EXIT
 trap "docker rm -vf $cid > /dev/null" EXIT
 
 
 _request() {
 _request() {