Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HyperLoom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ADAS
HyperLoom
Commits
b28f71da
Commit
b28f71da
authored
8 years ago
by
Ada Böhm
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Reconnect test fixed
parent
bff925b6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/client/loomenv.py
+3
-1
3 additions, 1 deletion
tests/client/loomenv.py
tests/client/test_client.py
+1
-1
1 addition, 1 deletion
tests/client/test_client.py
with
4 additions
and
2 deletions
tests/client/loomenv.py
+
3
−
1
View file @
b28f71da
...
...
@@ -135,11 +135,13 @@ class LoomEnv(Env):
self
.
check_stats
()
return
self
.
_client
def
submit
(
self
,
results
,
report
=
None
):
def
submit
(
self
,
results
,
report
=
None
,
check_timeout
=
None
):
if
report
:
report
=
os
.
path
.
join
(
LOOM_TEST_BUILD_DIR
,
report
)
result
=
self
.
client
.
submit
(
results
,
report
)
self
.
check_stats
()
if
check_timeout
:
time
.
sleep
(
check_timeout
)
self
.
check_final_state
()
return
result
...
...
This diff is collapsed.
Click to expand it.
tests/client/test_client.py
+
1
−
1
View file @
b28f71da
...
...
@@ -57,7 +57,7 @@ print(client.submit((a, b, c, d)))
b
=
tasks
.
const
(
"
xyz
"
)
c
=
tasks
.
const
(
"
123
"
)
d
=
tasks
.
merge
((
a
,
b
,
c
))
result
=
loom_env
.
submit
(
d
)
result
=
loom_env
.
submit
(
d
,
check_timeout
=
0.9
)
assert
result
==
b
"
abcxyz123
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment