[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@8389bf2a518106b5e4ab0b2a42c4a7780dcbcc66
@@ -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 + "}}}");
