Yuxin Wang
|
81c58c540b
|
Add simple test_tracker_restart.
|
2018-10-10 20:32:45 -04:00 |
|
Yuxin Wang
|
3b682471b8
|
Remove test_tracker_restart temporarily.
|
2018-10-10 20:31:49 -04:00 |
|
Yuxin Wang
|
ea0d9c1ce7
|
Move setup_tracker_and_peers to conftest.
|
2018-10-10 20:28:54 -04:00 |
|
Yuxin Wang
|
526ac4c083
|
Fix usage of start.
|
2018-10-10 19:38:22 -04:00 |
|
Yuxin Wang
|
7125636e46
|
Refactor initialization.
Adopt lazy initializations, Peer class now has connect method to connect to tracker.
|
2018-10-10 19:34:52 -04:00 |
|
Yuxin Wang
|
5366d543f2
|
Add test for download_disconnect.
|
2018-10-10 16:42:41 -04:00 |
|
Yuxin Wang
|
a74e7bc6be
|
Put stop tracker and peer into finally block.
|
2018-10-10 00:05:24 -04:00 |
|
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
|
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
|
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
|
7f62307a3a
|
Cleanup peers information when disconnected.
|
2018-10-09 00:26:42 -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
|
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 |
|