removed runBlocking, as it's no longer necessary
This commit is contained in:
parent
402c5a0ccd
commit
a5a951f863
|
@ -8,7 +8,6 @@ import dorkbox.network.connection.Connection
|
||||||
import dorkbox.network.exceptions.ClientException
|
import dorkbox.network.exceptions.ClientException
|
||||||
import dorkbox.network.ipFilter.IpSubnetFilterRule
|
import dorkbox.network.ipFilter.IpSubnetFilterRule
|
||||||
import kotlinx.atomicfu.atomic
|
import kotlinx.atomicfu.atomic
|
||||||
import kotlinx.coroutines.runBlocking
|
|
||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
|
@ -45,13 +44,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,13 +93,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,13 +141,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +189,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,17 +230,15 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK, 0)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
waitForThreads()
|
waitForThreads(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = ClientException::class)
|
@Test(expected = ClientException::class)
|
||||||
|
@ -277,13 +266,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,13 +312,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,13 +362,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,13 +405,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -462,13 +443,11 @@ class ConnectionFilterTest : BaseTest() {
|
||||||
stopEndPoints()
|
stopEndPoints()
|
||||||
}
|
}
|
||||||
|
|
||||||
runBlocking {
|
try {
|
||||||
try {
|
client.connect(LOOPBACK)
|
||||||
client.connect(LOOPBACK)
|
} catch (e: Exception) {
|
||||||
} catch (e: Exception) {
|
stopEndPoints()
|
||||||
stopEndPoints()
|
throw e
|
||||||
throw e
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user