mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
Add test timeout
This commit is contained in:
parent
49fdc19763
commit
6f8d15ed37
@ -10,12 +10,15 @@
|
||||
package net.mamoe.mirai.internal.test
|
||||
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.Timeout
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
internal expect fun initPlatform()
|
||||
|
||||
/**
|
||||
* All test classes should inherit from [AbstractTest]
|
||||
*/
|
||||
@Timeout(value = 7, unit = TimeUnit.MINUTES)
|
||||
abstract class AbstractTest {
|
||||
init {
|
||||
initPlatform()
|
||||
|
Loading…
Reference in New Issue
Block a user