File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/job/config Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 7
7
package org .elasticsearch .xpack .core .ml .job .config ;
8
8
9
9
import org .elasticsearch .ElasticsearchStatusException ;
10
- import org .elasticsearch .Version ;
11
10
import org .elasticsearch .common .io .stream .Writeable ;
12
11
import org .elasticsearch .common .unit .ByteSizeUnit ;
13
12
import org .elasticsearch .common .unit .ByteSizeValue ;
14
13
import org .elasticsearch .core .Nullable ;
15
14
import org .elasticsearch .core .TimeValue ;
16
15
import org .elasticsearch .test .AbstractXContentSerializingTestCase ;
17
- import org .elasticsearch .test .VersionUtils ;
18
16
import org .elasticsearch .xcontent .XContentParser ;
19
17
import org .elasticsearch .xpack .core .ml .MlConfigVersion ;
20
18
import org .elasticsearch .xpack .core .ml .job .process .autodetect .state .ModelSnapshot ;
@@ -293,7 +291,7 @@ public void testMergeWithJob() {
293
291
updateBuilder .setPerPartitionCategorizationConfig (new PerPartitionCategorizationConfig (true , randomBoolean ()));
294
292
updateBuilder .setCustomSettings (customSettings );
295
293
updateBuilder .setModelSnapshotId (randomAlphaOfLength (10 ));
296
- updateBuilder .setJobVersion (MlConfigVersion . fromVersion ( VersionUtils . randomCompatibleVersion (random (), Version . CURRENT )));
294
+ updateBuilder .setJobVersion (MlConfigVersionUtils . randomCompatibleVersion (random ()));
297
295
updateBuilder .setModelPruneWindow (TimeValue .timeValueDays (randomIntBetween (1 , 100 )));
298
296
JobUpdate update = updateBuilder .build ();
299
297
You can’t perform that action at this time.
0 commit comments