@@ -122,15 +122,19 @@ public void init() {
122
122
123
123
public void testIsRunningOnMlPlatform () {
124
124
assertTrue (MachineLearningFeatureSet .isRunningOnMlPlatform ("Linux" , "amd64" , true ));
125
- assertTrue (MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10 " , "amd64 " , true ));
125
+ assertTrue (MachineLearningFeatureSet .isRunningOnMlPlatform ("Linux " , "aarch64 " , true ));
126
126
assertTrue (MachineLearningFeatureSet .isRunningOnMlPlatform ("Mac OS X" , "x86_64" , true ));
127
+ assertTrue (MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10" , "amd64" , true ));
128
+ assertFalse (MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10" , "arm64" , false ));
127
129
assertFalse (MachineLearningFeatureSet .isRunningOnMlPlatform ("Linux" , "i386" , false ));
128
130
assertFalse (MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10" , "i386" , false ));
129
131
assertFalse (MachineLearningFeatureSet .isRunningOnMlPlatform ("SunOS" , "amd64" , false ));
130
132
expectThrows (ElasticsearchException .class ,
131
133
() -> MachineLearningFeatureSet .isRunningOnMlPlatform ("Linux" , "i386" , true ));
132
134
expectThrows (ElasticsearchException .class ,
133
135
() -> MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10" , "i386" , true ));
136
+ expectThrows (ElasticsearchException .class ,
137
+ () -> MachineLearningFeatureSet .isRunningOnMlPlatform ("Windows 10" , "arm64" , true ));
134
138
expectThrows (ElasticsearchException .class ,
135
139
() -> MachineLearningFeatureSet .isRunningOnMlPlatform ("SunOS" , "amd64" , true ));
136
140
}
0 commit comments