Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
058b9e0b
Commit
058b9e0b
authored
Oct 15, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: improve time_flow test
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
b193a4f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_fmctdc_time.py
pytest/test-01-functionalities/test_fmctdc_time.py
+3
-2
No files found.
pytest/test-01-functionalities/test_fmctdc_time.py
View file @
058b9e0b
...
...
@@ -37,6 +37,7 @@ class TestFmctdcTime(object):
second for a minute"""
fmctdc
.
whiterabbit_mode
=
whiterabbit
for
i
in
range
(
20
):
t_prev
=
fmctdc
.
time
.
seconds
t_prev
=
fmctdc
.
time
time
.
sleep
(
1
)
assert
t_prev
+
1
==
fmctdc
.
time
.
seconds
t_diff
=
abs
(
float
(
fmctdc
.
time
)
-
float
(
t_prev
))
assert
0.999
<
t_diff
<
1.001
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