Skip to content

Commit 6c851ef

Browse files
authored
[ML] Fix ModelRegistryMetadataTests (#125756) (#125861)
(cherry picked from commit 67798dd) # Conflicts: # muted-tests.yml
1 parent 92a593b commit 6c851ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/registry/ModelRegistryMetadataTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static ModelRegistryMetadata randomInstance() {
3030
}
3131

3232
public static ModelRegistryMetadata randomInstance(boolean isUpgraded) {
33-
if (rarely()) {
33+
if (rarely() && isUpgraded == false) {
3434
return ModelRegistryMetadata.EMPTY;
3535
}
3636
int size = randomIntBetween(1, 5);

0 commit comments

Comments
 (0)