Skip to content

Commit

Permalink
Parallelize lobby tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Oct 14, 2023
1 parent 9829c68 commit 4134ebc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faf-commons-lobby/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ tasks.withType<Test> {
showCauses = true
showStackTraces = true
}

systemProperties["junit.jupiter.execution.parallel.enabled"] = true
}

tasks.withType<KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.parallel.Execution
import org.junit.jupiter.api.parallel.ExecutionMode
import org.skyscreamer.jsonassert.JSONAssert

@Execution(ExecutionMode.CONCURRENT)
class ClientMessageTest {

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import org.junit.jupiter.api.BeforeAll
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.parallel.Execution
import org.junit.jupiter.api.parallel.ExecutionMode
import org.skyscreamer.jsonassert.JSONAssert
import org.slf4j.Logger
import org.slf4j.LoggerFactory
Expand All @@ -31,6 +33,7 @@ import java.nio.charset.StandardCharsets
import java.time.Duration
import java.time.temporal.ChronoUnit

@Execution(ExecutionMode.CONCURRENT)
class LobbyClientTest {
companion object {
val TIMEOUT: Long = 30;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ import com.fasterxml.jackson.module.kotlin.readValue
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.parallel.Execution
import org.junit.jupiter.api.parallel.ExecutionMode
import java.time.OffsetDateTime

@Execution(ExecutionMode.CONCURRENT)
class ServerMessageTest {

companion object {
Expand Down

0 comments on commit 4134ebc

Please sign in to comment.