Commit e435d88e authored by Boxiang Sun's avatar Boxiang Sun

theia: peertube test fixup

parent 25bb6808
......@@ -298,7 +298,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
# Compute backup date in the near future
soon = (datetime.now() + timedelta(minutes=4)).replace(second=0)
frequency = '%d * * * *' % soon.minute
params = '_={"peertube-backup-cron": {"frequency": "%s"}, }' % frequency
params = '_={"frequency": "%s"}' % frequency
# Update Peertube parameters
......@@ -315,6 +314,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
t = (soon - datetime.now()).total_seconds()
self.assertLess(0, t)
time.sleep(t + 120)
self.callSlapos('node', 'status')
# Check that postgresql backup has started
# which contains this file: ./peertube_prod-dump.db
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment