[Monitoring] Fix HttpExporterIT.testHostChangeReChecksTemplate (elastic/x-pack-elasticsearch#2703)
This changes the test to use the correct version (the Watch version). Original commit: elastic/x-pack-elasticsearch@197ec3869b
This commit is contained in:
parent
dc1ed43ac1
commit
f5561006f5
|
@ -777,7 +777,7 @@ public class HttpExporterIT extends MonitoringIntegTestCase {
|
|||
if (randomBoolean()) {
|
||||
enqueueResponse(webServer, 404, "watch [" + watchId + "] does not exist");
|
||||
} else if (randomBoolean()) {
|
||||
final int version = LAST_UPDATED_VERSION - randomIntBetween(1, 1000000);
|
||||
final int version = ClusterAlertsUtil.LAST_UPDATED_VERSION - randomIntBetween(1, 1000000);
|
||||
|
||||
// it DOES exist, but it's an older version
|
||||
enqueueResponse(webServer, 200, "{\"metadata\":{\"xpack\":{\"version_created\":" + version + "}}}");
|
||||
|
|
Loading…
Reference in New Issue