From 18212ba09ceb8f4599fcb5956b8c7c581e3ae240 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 23 Sep 2014 12:52:50 +0200 Subject: [PATCH] [TEST] Make sure test actually throttles --- .../snapshots/SharedClusterSnapshotRestoreTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java b/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java index 78069e460b3..b4b03e4a036 100644 --- a/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java +++ b/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreTests.java @@ -22,7 +22,6 @@ package org.elasticsearch.snapshots; import com.carrotsearch.randomizedtesting.LifecycleScope; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableList; -import org.apache.lucene.util.LuceneTestCase; import org.apache.lucene.util.LuceneTestCase.Slow; import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.action.ListenableActionFuture; @@ -1069,8 +1068,8 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests { .put("location", repositoryLocation) .put("compress", randomBoolean()) .put("chunk_size", randomIntBetween(1000, 10000)) - .put("max_restore_bytes_per_sec", throttleRestore ? "2.5k" : "0") - .put("max_snapshot_bytes_per_sec", throttleSnapshot ? "2.5k" : "0"))); + .put("max_restore_bytes_per_sec", throttleRestore ? "0.5k" : "0") + .put("max_snapshot_bytes_per_sec", throttleSnapshot ? "0.5k" : "0"))); createIndex("test-idx"); ensureGreen();