Skip to content

Commit

Permalink
Extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Nov 20, 2023
1 parent 157c945 commit 2b0ccb4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,11 @@ public void testNewTrialAllowed() {
assertTrue(new TrialLicenseVersion(randomIntBetween(7_00_00_00, 7_99_99_99)).ableToStartNewTrial());
assertFalse(new TrialLicenseVersion(CURRENT.asInt()).ableToStartNewTrial());
assertFalse(new TrialLicenseVersion(randomIntBetween(8_00_00_00, TRIAL_VERSION_CUTOVER)).ableToStartNewTrial());
final int trialVersion = randomIntBetween(TRIAL_VERSION_CUTOVER, CURRENT.asInt());
if (trialVersion < CURRENT.asInt()) {
assertTrue(new TrialLicenseVersion(trialVersion).ableToStartNewTrial());
} else {
assertFalse(new TrialLicenseVersion(trialVersion).ableToStartNewTrial());
}
}
}

0 comments on commit 2b0ccb4

Please sign in to comment.