Skip to content

Commit b81e22f

Browse files
dkrasnoffzwiora
authored andcommitted
KTL-1220: Ignored tests connected to completion.
1 parent 3fd446f commit b81e22f

File tree

3 files changed

+281
-267
lines changed

3 files changed

+281
-267
lines changed

src/test/kotlin/com/compiler/server/CompletionTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ package com.compiler.server
22

33
import com.compiler.server.base.BaseExecutorTest
44
import org.junit.jupiter.api.Test
5+
import kotlin.test.Ignore
56

7+
// TODO(Dmitrii Krasnov): this test is disabled until KTL-2807 is fixed
8+
@Ignore
69
class CompletionTest : BaseExecutorTest() {
710
@Test
811
fun `variable completion test`() {

src/test/kotlin/com/compiler/server/ConcurrencyRunnerTest.kt

Lines changed: 63 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,77 +5,82 @@ import kotlinx.coroutines.Dispatchers
55
import kotlinx.coroutines.launch
66
import kotlinx.coroutines.runBlocking
77
import org.junit.jupiter.api.Test
8+
import kotlin.test.Ignore
89

910
class ConcurrencyRunnerTest : BaseExecutorTest() {
10-
@Test
11-
fun `a lot of hello word test JVM`() {
12-
runManyTest {
13-
run(
14-
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
15-
contains = "Hello, world!!!"
16-
)
11+
@Test
12+
fun `a lot of hello word test JVM`() {
13+
runManyTest {
14+
run(
15+
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
16+
contains = "Hello, world!!!"
17+
)
18+
}
1719
}
18-
}
1920

20-
@Test
21-
fun `a lot of complete test`() {
22-
runManyTest {
23-
complete(
24-
code = "fun main() {\n val alex = 1\n val alex1 = 1 + a\n}",
25-
line = 2,
26-
character = 21,
27-
completions = listOf(
28-
"alex"
29-
)
30-
)
21+
// TODO(Dmitrii Krasnov): this test is disabled until KTL-2807 is fixed
22+
@Ignore
23+
@Test
24+
fun `a lot of complete test`() {
25+
runManyTest {
26+
complete(
27+
code = "fun main() {\n val alex = 1\n val alex1 = 1 + a\n}",
28+
line = 2,
29+
character = 21,
30+
completions = listOf(
31+
"alex"
32+
)
33+
)
34+
}
3135
}
32-
}
3336

34-
@Test
35-
fun `a lot of complete test JS`() {
36-
runManyTest {
37-
complete(
38-
code = "fun main() {\n val alex = 1\n val alex1 = 1 + a\n}",
39-
line = 2,
40-
character = 21,
41-
completions = listOf(
42-
"alex"
43-
),
44-
isJs = true
45-
)
37+
// TODO(Dmitrii Krasnov): this test is disabled until KTL-2807 is fixed
38+
@Ignore
39+
@Test
40+
fun `a lot of complete test JS`() {
41+
runManyTest {
42+
complete(
43+
code = "fun main() {\n val alex = 1\n val alex1 = 1 + a\n}",
44+
line = 2,
45+
character = 21,
46+
completions = listOf(
47+
"alex"
48+
),
49+
isJs = true
50+
)
51+
}
4652
}
47-
}
4853

49-
@Test
50-
fun `a lot of hello word test JS`() {
51-
runManyTest {
52-
runJsIr(
53-
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
54-
contains = "println('Hello, world!!!');"
55-
)
54+
@Test
55+
fun `a lot of hello word test JS`() {
56+
runManyTest {
57+
runJsIr(
58+
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
59+
contains = "println('Hello, world!!!');"
60+
)
61+
}
5662
}
57-
}
5863

59-
@Test
60-
fun `a lot of hello word test JS IR`() {
61-
runManyTest {
62-
runJsIr(
63-
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
64-
contains = "println('Hello, world!!!');"
65-
)
64+
@Test
65+
fun `a lot of hello word test JS IR`() {
66+
runManyTest {
67+
runJsIr(
68+
code = "fun main() {\n println(\"Hello, world!!!\")\n}",
69+
contains = "println('Hello, world!!!');"
70+
)
71+
}
6672
}
67-
}
6873

69-
private fun runManyTest(times: Int = 100, test: () -> Unit) {
70-
runBlocking {
71-
launch(Dispatchers.IO) {
72-
for (i in 0 until times) {
73-
launch(Dispatchers.IO) {
74-
test()
75-
}
74+
private fun runManyTest(times: Int = 100, test: () -> Unit) {
75+
runBlocking {
76+
launch(Dispatchers.IO) {
77+
for (i in 0 until times) {
78+
launch(Dispatchers.IO) {
79+
test()
80+
}
81+
}
82+
}.join()
7683
}
77-
}.join()
7884
}
79-
}
8085

8186
}

0 commit comments

Comments
 (0)