Yuxin Wang
|
310c82f9ed
|
Stop the tracker and peers after tests.
|
2018-10-13 21:54:47 -04:00 |
|
Yuxin Wang
|
0e952263dd
|
Fix return value.
|
2018-10-13 18:23:33 -04:00 |
|
Yuxin Wang
|
da8c29c8db
|
Fix return value.
|
2018-10-13 18:11:42 -04:00 |
|
Yuxin Wang
|
5496669277
|
Return nothing for server.start() method.
|
2018-10-13 17:47:58 -04:00 |
|
Yuxin Wang
|
d427b6f61c
|
Wrap test_connect_refused code in pytest.raises environment.
|
2018-10-13 17:35:25 -04:00 |
|
Yuxin Wang
|
6c22b59fd8
|
Raise exceptions in download.
|
2018-10-13 17:10:36 -04:00 |
|
Yuxin Wang
|
3183183a27
|
Add more tests for list_file and publish.
|
2018-10-13 16:49:12 -04:00 |
|
Yuxin Wang
|
de85d9e541
|
Raise exceptions in list_files method.
|
2018-10-13 16:48:58 -04:00 |
|
Yuxin Wang
|
67ca6d2966
|
Raise exceptions in connect method.
|
2018-10-13 16:40:38 -04:00 |
|
Yuxin Wang
|
ebfb782d27
|
Raise exception in publish method instead of return error code.
|
2018-10-13 16:32:56 -04:00 |
|
Yuxin Wang
|
2277d1bd11
|
Add file to cleanup before running the actual operation.
|
2018-10-13 15:01:12 -04:00 |
|
Yuxin Wang
|
e4567c45a7
|
Fix test code.
|
2018-10-11 23:06:37 -04:00 |
|
Yuxin Wang
|
d2c4543fbb
|
Add test for tracker disconnect.
|
2018-10-11 18:08:39 -04:00 |
|
Yuxin Wang
|
8e5d81cea5
|
Add more tests for test_tracker_restart.
|
2018-10-10 21:02:52 -04:00 |
|
Yuxin Wang
|
a3b72c41a2
|
Add test for running status.
|
2018-10-10 20:34:52 -04:00 |
|
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 |
|