Yuxin Wang
|
f5c6d1dbe3
|
Remove downloaded files after test.
|
2018-10-09 23:54:36 -04:00 |
|
Yuxin Wang
|
eff9a968a5
|
Put remove file to the finally block.
|
2018-10-09 23:53:21 -04:00 |
|
Yuxin Wang
|
fc7fe1c59c
|
Add TEST_SMALL_FILE_1 for test_delay().
|
2018-10-09 23:53:03 -04:00 |
|
Yuxin Wang
|
68af3ce824
|
Remove disconnected peers.
|
2018-10-09 21:52:13 -04:00 |
|
Yuxin Wang
|
f3eb11b138
|
Remove dead code.
|
2018-10-09 21:15:48 -04:00 |
|
Yuxin Wang
|
be6ad63795
|
Add speed tests for peers.
|
2018-10-09 21:15:17 -04:00 |
|
Yuxin Wang
|
422e08f6f6
|
Don't have to wait write events.
|
2018-10-09 21:10:53 -04:00 |
|
Yuxin Wang
|
b2ea25e5e0
|
Send back ping-pong packet.
|
2018-10-09 21:09:41 -04:00 |
|
Yuxin Wang
|
929f968775
|
Put _read_message inside try block.
|
2018-10-09 21:09:26 -04:00 |
|
Yuxin Wang
|
373adc7e30
|
Only convert Enum to int if message type header is Enum.
|
2018-10-09 21:04:23 -04:00 |
|
Yuxin Wang
|
c35c2f2c61
|
Remove unused message field.
|
2018-10-09 21:04:01 -04:00 |
|
Yuxin Wang
|
b9805def56
|
Raise the IncompleteReadError to be catched by caller.
|
2018-10-09 21:03:46 -04:00 |
|
Yuxin Wang
|
990703b18d
|
Remove LEAVE message and add PEER_PING_PONG message type.
|
2018-10-09 16:54:30 -04:00 |
|
Yuxin Wang
|
35d95ab5e1
|
Rename the variable for better readability.
|
2018-10-09 16:53:47 -04:00 |
|
Yuxin Wang
|
792ff2df67
|
Move tests for result in try block.
|
2018-10-09 16:50:23 -04:00 |
|
Yuxin Wang
|
33c44e12b5
|
Add concurrent download tests.
|
2018-10-09 16:50:09 -04:00 |
|
Yuxin Wang
|
872615f529
|
Put remove file in finally block.
|
2018-10-09 16:37:44 -04:00 |
|
Yuxin Wang
|
bf7941c386
|
Remove unnecessary notes.
|
2018-10-09 16:31:39 -04:00 |
|
Yuxin Wang
|
9e98cc3d31
|
Close the writer if the writer hasn't been closed.
|
2018-10-09 14:34:19 -04:00 |
|
Yuxin Wang
|
e45db7060e
|
Remove unnecessary file.
|
2018-10-09 14:32:13 -04:00 |
|
Yuxin Wang
|
c8c58f4c92
|
Wait longer for tracker code to run.
|
2018-10-09 01:27:48 -04:00 |
|
Yuxin Wang
|
e01c0ffee1
|
Add artificial delay for peer.
|
2018-10-09 01:27:01 -04:00 |
|
Yuxin Wang
|
d638604510
|
Add check if the file whose chunk is being registered exists.
|
2018-10-09 01:09:41 -04:00 |
|
Yuxin Wang
|
ebd1e6eaac
|
Add total_chunknum to fileinfo.
|
2018-10-09 00:53:46 -04:00 |
|
Yuxin Wang
|
22c1e9358e
|
Merge the chunknum with the possessed chunk list.
|
2018-10-09 00:46:42 -04:00 |
|
Yuxin Wang
|
97d7f143cc
|
Add more notes.
|
2018-10-09 00:46:20 -04:00 |
|
Yuxin Wang
|
7f62307a3a
|
Cleanup peers information when disconnected.
|
2018-10-09 00:26:42 -04:00 |
|
Yuxin Wang
|
4bd802fdc8
|
Merge branch 'fix-resource-warning', stop the peers and tracker more gracefully.
|
2018-10-08 23:45:37 -04:00 |
|
Yuxin Wang
|
322fa8b6cb
|
Add todos.
|
2018-10-08 23:45:25 -04:00 |
|
Yuxin Wang
|
09000eafc1
|
Wrap the peer connection in finally block.
|
2018-10-08 22:56:45 -04:00 |
|
Yuxin Wang
|
85f07388a4
|
Close connection to server when stop() is called.
|
2018-10-08 22:56:13 -04:00 |
|
Yuxin Wang
|
0efec20ba9
|
Remove close writer in tracker class.
Base class MessageServer will take care of closes.
|
2018-10-08 22:55:50 -04:00 |
|
Yuxin Wang
|
29153c45a6
|
Spawn 2 peers instead of 3.
|
2018-10-08 22:55:19 -04:00 |
|
Yuxin Wang
|
c1b86e4779
|
Remove unnecessary code.
|
2018-10-08 21:36:35 -04:00 |
|
Yuxin Wang
|
0646559d51
|
Merge branch 'refactor-tests', use pytest-asyncio to run tests asynchrounously.
|
2018-10-08 21:32:21 -04:00 |
|
Yuxin Wang
|
527c1f2443
|
Use pytest-asyncio to run test asynchrounouly.
Isolate each test_ functions.
|
2018-10-08 21:29:51 -04:00 |
|
Yuxin Wang
|
0753e266d6
|
Fix typo.
|
2018-10-08 19:02:31 -04:00 |
|
Yuxin Wang
|
bb8fccd696
|
Add some tests for terminal.
|
2018-10-08 17:00:19 -04:00 |
|
Yuxin Wang
|
77fa487a2a
|
Merge branch 'refactor-tests', split the test_core into multiple functions.
|
2018-10-08 14:18:43 -04:00 |
|
Yuxin Wang
|
451d43e3bf
|
Add test for publish_refusal.
|
2018-10-08 14:10:39 -04:00 |
|
Yuxin Wang
|
04f6c67afe
|
Fix typo.
|
2018-10-08 14:09:52 -04:00 |
|
Yuxin Wang
|
f9eccc6c99
|
Assert on the result of publish.
|
2018-10-08 14:09:11 -04:00 |
|
Yuxin Wang
|
0c0969f603
|
Use pre-defined file sizes to do assert.
|
2018-10-08 14:08:30 -04:00 |
|
Yuxin Wang
|
554a8e5ac3
|
Fix name mismatch.
|
2018-10-08 14:02:32 -04:00 |
|
Yuxin Wang
|
79d4e3b399
|
Rename test_main to test_core.
|
2018-10-08 14:00:59 -04:00 |
|
Yuxin Wang
|
1df02a4936
|
Split the test into multiple functions.
|
2018-10-08 14:00:45 -04:00 |
|
Yuxin Wang
|
8b1f4c6b7c
|
Add conftest to create and delete test files on session level.
|
2018-10-08 13:51:02 -04:00 |
|
Yuxin Wang
|
d050403e68
|
Add description.
|
2018-10-08 11:42:00 -04:00 |
|
Yuxin Wang
|
6f754a526b
|
Fix print bugs.
|
2018-10-08 11:39:43 -04:00 |
|
Yuxin Wang
|
aa50a1abe5
|
Use beautiful table instead of tabulate.
|
2018-10-08 11:30:05 -04:00 |
|