Skip to content

Commit 5ea84b9

Browse files
committed
fix: propagate rest endpoint refactor
1 parent 3c74e66 commit 5ea84b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/src/test/kotlin/lsp/LspCompletionProviderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class LspCompletionProviderTest : CompletionTest {
5858
@Test
5959
fun `rest endpoint should return completions in the expected order`() {
6060
val completions = getCompletions(testCode).map { it.text }
61-
val expectedTexts = listOf("toInt()", "toIntervalZeroBased()", "toUInt()", "roundToInt()")
61+
val expectedTexts = listOf("toInt()", "toIntervalZeroBased()", "roundToInt()", "toUInt()")
6262
assertEquals(expectedTexts, completions)
6363
}
6464

@@ -101,7 +101,7 @@ class LspCompletionProviderTest : CompletionTest {
101101
}
102102

103103
private fun retrieveCompletionsFromEndpoint(code: String, position: Position): List<Completion> {
104-
val url = "http://localhost:$port/api/complete/lsp?line=${position.line}&ch=${position.character}"
104+
val url = "http://localhost:$port/api/compiler/complete?line=${position.line}&ch=${position.character}"
105105
return webTestClient.retrieveCompletions(url, code)
106106
}
107107
}

0 commit comments

Comments
 (0)