Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
e435d88e
Commit
e435d88e
authored
Nov 22, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia: peertube test fixup
parent
25bb6808
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+1
-1
No files found.
software/theia/test/project_tests.py
View file @
e435d88e
...
@@ -298,7 +298,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -298,7 +298,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
# Compute backup date in the near future
# Compute backup date in the near future
soon
=
(
datetime
.
now
()
+
timedelta
(
minutes
=
4
)).
replace
(
second
=
0
)
soon
=
(
datetime
.
now
()
+
timedelta
(
minutes
=
4
)).
replace
(
second
=
0
)
frequency
=
'%d * * * *'
%
soon
.
minute
frequency
=
'%d * * * *'
%
soon
.
minute
params
=
'_={"peertube-backup-cron": {"frequency": "%s"}, }'
%
frequency
params
=
'_={"frequency": "%s"}'
%
frequency
params
=
'_={"frequency": "%s"}'
%
frequency
# Update Peertube parameters
# Update Peertube parameters
...
@@ -315,6 +314,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -315,6 +314,7 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
t
=
(
soon
-
datetime
.
now
()).
total_seconds
()
t
=
(
soon
-
datetime
.
now
()).
total_seconds
()
self
.
assertLess
(
0
,
t
)
self
.
assertLess
(
0
,
t
)
time
.
sleep
(
t
+
120
)
time
.
sleep
(
t
+
120
)
self
.
callSlapos
(
'node'
,
'status'
)
# Check that postgresql backup has started
# Check that postgresql backup has started
# which contains this file: ./peertube_prod-dump.db
# which contains this file: ./peertube_prod-dump.db
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment