Skip to content

Commit 4fe58d8

Browse files
committed
win
1 parent 279a7fe commit 4fe58d8

File tree

1 file changed

+4
-2
lines changed
  • plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+4
-2
lines changed

plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/NodeExePatcherTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ class NodeExePatcherTest {
1414
@get:Rule
1515
val envVarHelper = EnvironmentVariableHelper()
1616

17+
private val pathToNode = Path("/path/to/node").toAbsolutePath().toString()
18+
1719
@Test
1820
fun `patches if path available`() {
1921
envVarHelper[NodeExePatcher.GLIBC_LINKER_VAR] = "/opt/vsc-sysroot/lib/ld-linux-x86-64.so.2"
2022
envVarHelper[NodeExePatcher.GLIBC_PATH_VAR] = "/opt/vsc-sysroot/lib/"
2123

2224
assertThat(NodeExePatcher.patch(Path("/path/to/node")))
2325
.usingComparator(Comparator.comparing { it.commandLineString })
24-
.isEqualTo(GeneralCommandLine("/opt/vsc-sysroot/lib/ld-linux-x86-64.so.2", "--library-path", "/opt/vsc-sysroot/lib/", "/path/to/node"))
26+
.isEqualTo(GeneralCommandLine("/opt/vsc-sysroot/lib/ld-linux-x86-64.so.2", "--library-path", "/opt/vsc-sysroot/lib/", pathToNode))
2527
}
2628

2729
@Test
2830
fun `noop if no patch available`() {
2931
assertThat(NodeExePatcher.patch(Path("/path/to/node")))
3032
.usingComparator(Comparator.comparing { it.commandLineString })
31-
.isEqualTo(GeneralCommandLine("/path/to/node"))
33+
.isEqualTo(GeneralCommandLine(pathToNode))
3234
}
3335
}

0 commit comments

Comments
 (0)