tox4j / deprecated-tox4j

Deprecated, see http://github.com/TokTok/jvm-toxcore-c
http://github.com/TokTok/jvm-toxcore-c
Other
42 stars 17 forks source link

File pause/resume tests fail #144

Closed iphydf closed 8 years ago

iphydf commented 9 years ago
[info] FilePauseResumeWithResendTest:
[14:32:39.450] INFO  AliceBobTestBase - [11] --- FilePauseResumeWithResendTest.im$tox$tox4j$testing$autotest$AliceBobTest$$runAliceBobTest_Direct
[14:32:45.194] INFO  FilePauseResumeWithResendTest - [11] Bob: is now connected to the network with TCP
[14:32:48.224] INFO  FilePauseResumeWithResendTest - [11] Alice: is now connected to the network with TCP
[14:32:48.401] INFO  FilePauseResumeWithResendTest - [11] Bob: is now connected to friend 10
[14:32:48.458] INFO  FilePauseResumeWithResendTest - [11] Alice: is now connected to friend 10
[14:32:48.458] INFO  FilePauseResumeWithResendTest - [11] Alice: initiate file sending to friend 10
[14:32:48.460] INFO  FilePauseResumeWithResendTest - [11] Bob: received file send request 65536 from friend number 10 current offset 0
[14:32:48.460] INFO  FilePauseResumeWithResendTest - [11] Bob: seek file to 0
[14:32:48.460] INFO  FilePauseResumeWithResendTest - [11] Bob: sending control RESUME for 65536
[14:32:48.518] INFO  FilePauseResumeWithResendTest - [11] Alice: receive file control from Bob
[14:32:48.518] INFO  FilePauseResumeWithResendTest - [11] Alice: bob accept file transmission request
[14:32:48.519] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 0
[14:32:48.519] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 1371
[14:32:48.519] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 2742
[14:32:48.520] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 4113
[14:32:48.520] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 5484
[14:32:48.520] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 6855
[14:32:48.520] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 8226
[14:32:48.521] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 9597
[14:32:48.521] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 10968
[14:32:48.521] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 12339
[14:32:48.521] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 13710
[14:32:48.522] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 15081
[14:32:48.522] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 16452
[14:32:48.522] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 17823
[14:32:48.522] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 19194
[14:32:48.523] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 20565
[14:32:48.523] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 21936
[14:32:48.523] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 23307
[14:32:48.524] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 24678
[14:32:48.524] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 26049
[14:32:48.524] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 27420
[14:32:48.524] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 28791
[14:32:48.525] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 30162
[14:32:48.525] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 31533
[14:32:48.525] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 32904
[14:32:48.525] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 34275
[14:32:48.526] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 35646
[14:32:48.526] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 37017
[14:32:48.526] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 38388
[14:32:48.526] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 39759
[14:32:48.527] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 41130
[14:32:48.527] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 42501
[14:32:48.527] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 43872
[14:32:48.527] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 45243
[14:32:48.527] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 46614
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 47985
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 49356
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 50727
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 52098
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 53469
[14:32:48.528] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 54840
[14:32:48.529] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 56211
[14:32:48.529] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 57582
[14:32:48.529] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 58953
[14:32:48.529] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 60324
[14:32:48.529] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 61695
[14:32:48.530] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 63066
[14:32:48.530] INFO  FilePauseResumeWithResendTest - [11] Alice: got request for 1371B from 10 for file 0 at 64437
[14:32:48.530] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 0
[14:32:48.530] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 1371
[14:32:48.530] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 2742
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 4113
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 5484
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 6855
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 8226
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 9597
[14:32:48.531] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 10968
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 12339
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 13710
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 15081
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 16452
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 17823
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 19194
[14:32:48.532] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 20565
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 21936
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 23307
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 24678
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 26049
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 27420
[14:32:48.533] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 28791
[14:32:48.534] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 30162
[14:32:48.534] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 31533
[14:32:48.534] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 32904
[14:32:48.534] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 34275
[14:32:48.535] INFO  FilePauseResumeWithResendTest - [11] Alice: pause file transmission
[14:32:48.535] INFO  FilePauseResumeWithResendTest - [11] Alice: sending 1371B to 10 from position 35646
[info] - UDP4 *** FAILED ***
[info]   im.tox.tox4j.core.exceptions.ToxFileSendChunkException: Error code: NOT_TRANSFERRING
[info]   at im.tox.tox4j.core.callbacks.FilePauseResumeTestBase$Alice.fileChunkRequest(FilePauseResumeTestBase.scala:88)
[info]   at im.tox.tox4j.core.callbacks.FilePauseResumeTestBase$Alice.fileChunkRequest(FilePauseResumeTestBase.scala:37)
[info]   at im.tox.tox4j.impl.jni.ToxCoreImpl$$anonfun$im$tox$tox4j$impl$jni$ToxCoreImpl$$dispatchFileChunkRequest$1$$anonfun$apply$21$$anonfun$apply$22.apply(ToxCoreImpl.scala:290)
[info]   at im.tox.tox4j.impl.jni.ToxCoreImpl$$anonfun$im$tox$tox4j$impl$jni$ToxCoreImpl$$dispatchFileChunkRequest$1.apply(ToxCoreImpl.scala:290)
[info]   at im.tox.tox4j.impl.jni.ToxCoreImpl$$anonfun$im$tox$tox4j$impl$jni$ToxCoreImpl$$dispatchFileChunkRequest$1.apply(ToxCoreImpl.scala:288)
[info]   at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:155)
[info]   at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:155)
[info]   at scala.collection.Iterator$class.foreach(Iterator.scala:742)
[info]   at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
[info]   at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[info]   ...
iphydf commented 8 years ago

This is fixed in irungentoo/master.