meejah
46f1f952e9
tighten delay on windows tests
2016-07-21 12:35:59 -07:00
meejah
e182562dbe
remove tub.location from smoke_test config for storage nodes
2016-07-21 12:35:59 -07:00
meejah
041aabd8c4
Error-handling and --debug option to print stack-trace for all magic-folder commands
2016-07-21 12:35:59 -07:00
meejah
4509c7dafd
Fix magic-folder 'status' command
2016-07-21 12:35:59 -07:00
meejah
db40417886
make check_magicfolder_smoke easier to run, cross-platform
2016-07-21 12:35:59 -07:00
meejah
1b72683741
get rid of more spew
2016-07-21 12:35:59 -07:00
meejah
e9343c8715
fix typo
2016-07-21 12:35:59 -07:00
meejah
efef4ae632
only use long delay on windows
2016-07-21 12:35:59 -07:00
meejah
fc5f820202
whitespace
2016-07-21 12:35:59 -07:00
meejah
516af88252
put longer timeout for test_alice_bob back in
2016-07-21 12:35:59 -07:00
meejah
a533aef960
remove delayedcall debugging
2016-07-21 12:35:59 -07:00
meejah
304da362f7
remove prints
2016-07-21 12:35:59 -07:00
meejah
ec11551404
slightly better way to find tahoe binary
2016-07-21 12:35:59 -07:00
meejah
18f799bdc8
remove incorrect override
2016-07-21 12:35:59 -07:00
meejah
34aed4bbad
fixup remove debug
2016-07-21 12:35:59 -07:00
meejah
e060c584d7
fixup for pending-call calls
2016-07-21 12:35:59 -07:00
meejah
3de2f9c756
get rid of a bunch of debug
2016-07-21 12:35:59 -07:00
meejah
db6717951f
properly cancel pending-call things in windows inotify
2016-07-21 12:35:59 -07:00
meejah
fce5b789dc
fixup rebase conflict mis-resolutions
2016-07-21 12:35:59 -07:00
Daira Hopwood
ba9abe6a2b
Repair fileutil tests.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
12773ea034
Increase timeout for test_alice_bob to 5 minutes.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
504e0d02f3
refactor to use context managers
2016-07-21 12:35:59 -07:00
meejah
ec37d52942
more
2016-07-21 12:35:59 -07:00
meejah
d41477bd5f
fix/change some assertions
2016-07-21 12:35:59 -07:00
meejah
575c00113a
fix typo for .conflict files
2016-07-21 12:35:59 -07:00
Daira Hopwood
c978db4c90
more fixes
2016-07-21 12:35:59 -07:00
meejah
c087a87b4a
fixes to test_alice_bob
2016-07-21 12:35:59 -07:00
Daira Hopwood
5c01d4781f
Temporarily increase delay to make sure we receive notifications.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
874b4cf343
Debug prints in Windows inotify emulation.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
e845f7ff65
Filter out FILE_ACTION_MODIFIED for directories.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
23f4b9dbfd
Repair tests after changing the semantics of objects_succeeded.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
8a83cff14d
Make _process return a boolean to indicate whether processing succeeded,
...
and only increment objects_succeeded if that is the case.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
0abe5baaf2
WIP: temporarily work around the AccessDenied errors after a test failure.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
afc7ab43a1
Fix a subtle typo.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
b949082f8e
Change type of mtime and ctime stored in magicfolderdb to integer nanoseconds.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
meejah
7c85de813f
(some) fixes for smoke_magicfolder
2016-07-21 12:35:59 -07:00
Daira Hopwood
237f4719ee
Remove the flush_volume call in RealTest as well as in RealTestAliceBob.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
b05b701532
Try to avoid spurious failures when shutting down the INotify loop on Windows.
...
This only partially solves the problem.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
23a1f311af
Fix pyflakes errors, add a comment about a suspicious test.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
a78e9c750a
WIP: add close method for MagicFolderDB and make MagicFolderDbTests use it.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
meejah
a50d0e5c8b
WIP and debugging things
...
Conflicts:
src/allmydata/test/test_magic_folder.py
2016-07-21 12:35:59 -07:00
meejah
58f9641179
Correct magic-folder use of StorageFarmBroker
...
When landing the "connected enough" changes on master,
we changed the API; this fixes up usage of it in magic-folder.
2016-07-21 12:35:59 -07:00
Daira Hopwood
e67d23b8fa
Fix negative counts for object_queued. fixes ticket:2731
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
meejah
625c5a42cd
daira points out bug
2016-07-21 12:35:59 -07:00
meejah
5f073c6987
more startup waiting
2016-07-21 12:35:59 -07:00
meejah
faed2574d6
possible less race-y startup
2016-07-21 12:35:59 -07:00
meejah
378ce27cbd
Make retry_download test work, and some bonus comments
2016-07-21 12:35:59 -07:00
Daira Hopwood
9e5b01b3ae
Swallow the error from Downloader._when_queue_is_empty.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
811d597cd8
Add WIP test_download_retry.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
meejah
e6104cd1a2
Replace _lazy_tail with iterative loop, cleanup tests ( #2412 )
...
* uses @inlineCallbacks to turn the _lazy_tail recursion into
a "real" looking loop;
* remove the need for "immediate" vs delayed iteration of said loop;
* make it easier for the unit-tests to control the behavior of the
uploader/downloader;
* consolidates (some) setup/teardown code into the setUp and tearDown
hooks provided by unittest so unit-tests aren't doing that themselves
* re-factors some of the unit-tests to use an @inlineCallbacks style
so they're easier to follow and debug
This doesn't tackle the "how to know when our inotify events have arrived"
problem the unit-tests still have, nor does it eliminate the myriad bits
of state that get added to tests via all the MixIns.
2016-07-21 12:35:59 -07:00