Skip to content

Commit

Permalink
Add comment about unexpected versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed May 7, 2019
1 parent 4961fd1 commit d4888db
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

public class NodeMetaDataTests extends ESTestCase {
private Version randomVersion() {
// VersionUtils.randomVersion() only returns known versions, which are necessarily no later than Version.CURRENT; however we want
// also to consider our behaviour with all versions, so occasionally pick up a truly random version.
return rarely() ? Version.fromId(randomInt()) : VersionUtils.randomVersion(random());
}

Expand Down

0 comments on commit d4888db

Please sign in to comment.