https://kotlinlang.org logo
b

bbaldino

03/11/2019, 8:33 PM
getting some weird output when a test fails:
Copy code
io.kotlintest.tables.MultiAssertionError: 
The following 2 assertions failed:
1) Test failed for (buf, [B@4e687cbe), (expectedShort, 0) with error ByteArray

was supposed to be:
##teamcity[testFailed name='should parse the short correctly' message='

	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invokeSuspend(ByteArrayExtensionsKtTest.kt:32)
2) Test failed for (buf, [B@5b597b7f), (expectedShort, -1) with error ByteArray
The following 2 assertions failed:

1) Test failed for (buf, [B@4e687cbe), (expectedShort, 0) with error ByteArray
was supposed to be:


was supposed to be:


	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invokeSuspend(ByteArrayExtensionsKtTest.kt:32)

	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invokeSuspend(ByteArrayExtensionsKtTest.kt:32)
2) Test failed for (buf, [B@5b597b7f), (expectedShort, -1) with error ByteArray


was supposed to be:

	at io.kotlintest.tables.ErrorCollector.assertAll(TableTesting.kt:104)

	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invokeSuspend(ByteArrayExtensionsKtTest.kt:32)
']	at io.kotlintest.tables.TableTestingKt.forAll(TableTesting.kt:130)

	at io.kotlintest.tables.TableTestingKt.forAll2receiver(TableTesting.kt:375)
	at io.kotlintest.data.DataDrivenTestingKt.forall(DataDrivenTesting.kt:30)
	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invokeSuspend(ByteArrayExtensionsKtTest.kt:32)
	at org.jitsi.rtp2.extensions.bytearray.ByteArrayExtensionsKtTest$1$1.invoke(ByteArrayExtensionsKtTest.kt)
	at io.kotlintest.runner.jvm.TestCaseExecutor$executeTest$supervisorJob$1$invokeSuspend$$inlined$map$lambda$1.invokeSuspend(TestCaseExecutor.kt:121)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)


Process finished with exit code 0