Skip to content

Commit 606bd38

Browse files
committed
Fix failing test
1 parent 0d3dd3b commit 606bd38

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/workspace/context/ProjectContextProviderTest.kt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,31 +316,31 @@ class ProjectContextProviderTest {
316316
}
317317

318318
@Test
319-
fun `query inline should throw if resultset not deserializable`() {
320-
assertThrows<Exception> {
321-
runTest {
322-
sut = ProjectContextProvider(project, encoderServer, this)
323-
stubFor(
324-
any(urlPathEqualTo("/queryInlineProjectContext")).willReturn(
325-
aResponse().withStatus(200).withResponseBody(
326-
Body(
327-
"""
319+
fun `query inline should throw if resultset not deserializable`() =
320+
runTest {
321+
sut = ProjectContextProvider(project, encoderServer, this)
322+
stubFor(
323+
any(urlPathEqualTo("/queryInlineProjectContext")).willReturn(
324+
aResponse().withStatus(200).withResponseBody(
325+
Body(
326+
"""
328327
[
329328
"foo", "bar"
330329
]
331-
""".trimIndent()
332-
)
330+
""".trimIndent()
333331
)
334332
)
335333
)
334+
)
336335

337-
assertThrows<Exception> {
336+
assertThrows<Exception> {
337+
withContext(getCoroutineBgContext()) {
338338
sut.queryInline("foo", "filepath", InlineContextTarget.CODEMAP)
339-
advanceUntilIdle()
340339
}
340+
341+
advanceUntilIdle()
341342
}
342343
}
343-
}
344344

345345
@Test
346346
fun `query inline should return deserialized bm25 chunks`() = runTest {

0 commit comments

Comments
 (0)