From bee81758c5dc39e1ca215f5170b4a54e3f5e7212 Mon Sep 17 00:00:00 2001 From: Dimitris Athanasiou Date: Wed, 28 Mar 2018 11:50:51 +0100 Subject: [PATCH] [ML][TEST] Data timestamps in OverallBucketsIT should be seconds Original commit: elastic/x-pack-elasticsearch@a875a0f68217a2bcc4cac3dce223cc39e34ee0b0 --- .../elasticsearch/xpack/ml/integration/OverallBucketsIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration/OverallBucketsIT.java b/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration/OverallBucketsIT.java index 5d054cba706..dfabfdacf09 100644 --- a/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration/OverallBucketsIT.java +++ b/qa/ml-native-tests/src/test/java/org/elasticsearch/xpack/ml/integration/OverallBucketsIT.java @@ -15,6 +15,7 @@ import org.elasticsearch.xpack.core.ml.job.config.DataDescription; import org.elasticsearch.xpack.core.ml.job.config.Detector; import org.elasticsearch.xpack.core.ml.job.config.Job; import org.elasticsearch.xpack.core.ml.job.process.autodetect.state.ModelSizeStats; +import org.elasticsearch.xpack.core.ml.job.results.OverallBucket; import org.junit.After; import java.util.ArrayList; @@ -54,7 +55,7 @@ public class OverallBucketsIT extends MlNativeAutodetectIntegTestCase { putJob(job); openJob(job.getId()); - long timestamp = 1483228800000L; // 2017-01-01T00:00:00Z + long timestamp = 1483228800L; // 2017-01-01T00:00:00Z List data = new ArrayList<>(); for (int i = 0; i < 3000; i++) { data.add(createJsonRecord(createRecord(timestamp)));