Skip to content

Commit

Permalink
updated test method to use apache maven versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Borges committed Jan 27, 2025
1 parent 03a206e commit 4788ba8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@

public final class RemoteLspFetcherTest {
private static VersionRange versionRange;
private static String majorVersion;
static {
try {
versionRange = VersionRange.createFromVersionSpec("[1.0.0, 2.0.0]");
majorVersion = "1";
} catch (InvalidVersionSpecificationException e) {
throw new AmazonQPluginException("Failed to parse LSP supported version range", e);
}
Expand Down Expand Up @@ -340,8 +342,8 @@ void fetchWhenMultipleLabelVersionsChooseLatest() throws IOException, Interrupte
void testCleanup() throws IOException {

//set up compatible versions
String sampleLspVersionV2 = String.format("%s.1.0", versionRange.getLeft().getMajor());
String sampleLspVersionV3 = String.format("%s.2.0", versionRange.getLeft().getMajor());
String sampleLspVersionV2 = String.format("%s.1.0", majorVersion);
String sampleLspVersionV3 = String.format("%s.2.0", majorVersion);
sampleManifest = createManifest(
List.of(
sampleLspVersion,
Expand Down

0 comments on commit 4788ba8

Please sign in to comment.