Browse Source

PYADPT-111: a little bit of testing

PYADPT-116
heck 7 months ago
parent
commit
5738a2ea33
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      test/start_sync.py

+ 23
- 0
test/start_sync.py View File

@ -23,6 +23,29 @@ pEp.myself(alice)
print(alice.fpr)
while True:
pEp.set_sync_mode(pEp.SyncModes.Async)
print("start_sync()")
pEp.start_sync()
print("Running...")
time.sleep(3)
print("shutdown_sync()")
pEp.shutdown_sync()
print("END")
time.sleep(3)
pEp.set_sync_mode(pEp.SyncModes.Sync)
print("start_sync()")
pEp.start_sync()
print("Running...")
time.sleep(3)
print("shutdown_sync()")
pEp.shutdown_sync()
print("END")
time.sleep(3)
pEp.set_sync_mode(pEp.SyncModes.Off)
print("start_sync()")
pEp.start_sync()
print("Running...")


Loading…
Cancel
Save