test: quicker interval

Original commit: elastic/x-pack-elasticsearch@795827db7f
This commit is contained in:
Martijn van Groningen 2015-04-24 14:53:37 +02:00
parent 9a044735dd
commit b0a16e36fd
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class HttpInputIntegrationTest extends AbstractWatcherIntegrationTests {
InetSocketAddress address = internalTestCluster().httpAddresses()[0]; InetSocketAddress address = internalTestCluster().httpAddresses()[0];
watcherClient().preparePutWatch("_name") watcherClient().preparePutWatch("_name")
.setSource(watchBuilder() .setSource(watchBuilder()
.trigger(schedule(interval("5s"))) .trigger(schedule(interval("1s")))
.input(httpInput(HttpRequestTemplate.builder(address.getHostName(), address.getPort()) .input(httpInput(HttpRequestTemplate.builder(address.getHostName(), address.getPort())
.path("/_cluster/stats") .path("/_cluster/stats")
.auth(shieldEnabled() ? new BasicAuth("test", "changeme") : null))) .auth(shieldEnabled() ? new BasicAuth("test", "changeme") : null)))