Skip to content

Commit

Permalink
Remove usages of no-longer-experimental annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
joffrey-bion committed Jul 8, 2023
1 parent d9721bf commit 3734c66
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RestController
import java.security.Principal
import kotlin.time.Duration.Companion.minutes
import kotlin.time.ExperimentalTime
import kotlin.time.measureTimedValue
import kotlin.time.toJavaDuration

Expand All @@ -27,7 +26,6 @@ class AutoGameController(
@Value("\${server.port}") private val serverPort: String,
private val meterRegistry: MeterRegistry,
) {
@OptIn(ExperimentalTime::class)
@PostMapping("/autoGame")
suspend fun autoGame(@RequestBody action: AutoGameAction, principal: Principal): AutoGameResult {
logger.info("Starting auto-game {}", action.gameName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private data class TestRedux(
val sagas: SagaManager<State, RAction, WrapperAction>,
)

@OptIn(ExperimentalCoroutinesApi::class) // for runTest
@OptIn(ExperimentalCoroutinesApi::class) // for advanceUntilIdle
class SagaContextTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import kotlin.test.assertEquals

class CoroutineUtilsTest {

@OptIn(ExperimentalCoroutinesApi::class) // for runTest
@Test
fun awaitFirstTest() = runTest {
val s = awaitFirst(
Expand Down

0 comments on commit 3734c66

Please sign in to comment.