Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
slapos.toolbox
Commits
6703c2e0
Commit
6703c2e0
authored
Apr 09, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: fix test on promise status_changed
parent
14aad48d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
slapos/test/monitor/testrunpromise.py
slapos/test/monitor/testrunpromise.py
+5
-8
No files found.
slapos/test/monitor/testrunpromise.py
View file @
6703c2e0
...
...
@@ -220,14 +220,11 @@ class RunPromise(GenericPromise):
}
self
.
assertEquals
(
expected_result
,
my_result
)
if
"my_promise"
in
sys
.
modules
:
# force to reload the module without rerun python
os
.
system
(
'rm %s/*.pyc'
%
self
.
promise_dir
)
del
sys
.
modules
[
"my_promise"
]
time
.
sleep
(
1.5
)
self
.
generatePromiseScript
(
'my_promise.py'
,
success
=
True
,
periodicity
=
0.017
)
promise_runner
=
MonitorPromiseLauncher
(
parser
)
promise_runner
.
start
()
os
.
system
(
'rm %s/*.pyc'
%
self
.
promise_dir
)
time
.
sleep
(
2
)
self
.
generatePromiseScript
(
'my_promise.py'
,
success
=
True
)
promise_runner2
=
MonitorPromiseLauncher
(
parser
)
promise_runner2
.
start
()
my_result
=
json
.
loads
(
open
(
result_file
).
read
().
decode
(
"utf-8"
))
my_result
[
'result'
].
pop
(
'date'
)
...
...
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