SNRK-86: Works
This commit is contained in:
parent
667688d46d
commit
a99e71d1b1
@ -7,7 +7,7 @@ import space.kscience.snark.ktor.SNARKServer
|
|||||||
import space.kscience.snark.storage.local.localStorage
|
import space.kscience.snark.storage.local.localStorage
|
||||||
import kotlin.io.path.Path
|
import kotlin.io.path.Path
|
||||||
|
|
||||||
fun main() = runBlocking {
|
fun main(): Unit = runBlocking {
|
||||||
val port = 8080
|
val port = 8080
|
||||||
val directory = localStorage(Path("./rundata"))
|
val directory = localStorage(Path("./rundata"))
|
||||||
val server = SNARKServer(ServerDataHolder(directory), port)
|
val server = SNARKServer(ServerDataHolder(directory), port)
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
package space.kscience.snark.main
|
|
||||||
|
|
||||||
import kotlinx.coroutines.launch
|
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
import org.junit.jupiter.api.Test
|
|
||||||
import space.kscience.snark.ktor.SNARKServer
|
|
||||||
import space.kscience.snark.storage.local.localStorage
|
|
||||||
import kotlin.io.path.Path
|
|
||||||
|
|
||||||
class Acceptance {
|
|
||||||
@Test
|
|
||||||
fun justWorks() = runBlocking {
|
|
||||||
main()
|
|
||||||
}
|
|
||||||
}
|
|
13
snark-main/src/test/kotlin/space/kscience/snark/main/Test.kt
Normal file
13
snark-main/src/test/kotlin/space/kscience/snark/main/Test.kt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package space.kscience.snark.main
|
||||||
|
|
||||||
|
import kotlinx.coroutines.delay
|
||||||
|
import kotlinx.coroutines.runBlocking
|
||||||
|
import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
|
class Test {
|
||||||
|
@Test
|
||||||
|
fun justWorks() = runBlocking {
|
||||||
|
delay(5)
|
||||||
|
main()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user