Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PERE Alexandre
orchestra
Commits
57514cb3
Commit
57514cb3
authored
Dec 17, 2019
by
Alexandre Pere
Browse files
Updates test
parent
08f99af5
Changes
1
Hide whitespace changes
Inline
Side-by-side
liborchestra/src/lib/scheduler.rs
View file @
57514cb3
...
...
@@ -687,10 +687,10 @@ if __name__ == \"__main__\":
command
.stderr
(
std
::
process
::
Stdio
::
inherit
());
let
scheduler
=
SchedulerHandle
::
spawn
(
command
,
"scheduler.py"
.into
())
.unwrap
();
let
parameters
=
block_on
(
scheduler
.async_request_parameters
())
.unwrap
();
let
parameters
=
block_on
(
scheduler
.async_request_parameters
(
"hhh"
.into
()
))
.unwrap
();
assert_eq!
(
parameters
,
format!
(
"params_from_python"
));
block_on
(
scheduler
.async_record_output
(
"params_from_rust"
.into
(),
"stdout"
.into
(),
"stderr"
.into
(),
0
,
"1.5"
.into
(),
"."
.into
()))
.unwrap
();
block_on
(
scheduler
.async_record_output
(
"hhh"
.into
(),
"params_from_rust"
.into
(),
"stdout"
.into
(),
"stderr"
.into
(),
0
,
"1.5"
.into
(),
"."
.into
()))
.unwrap
();
drop
(
scheduler
);
...
...
@@ -702,9 +702,9 @@ if __name__ == \"__main__\":
command
.stderr
(
std
::
process
::
Stdio
::
inherit
());
let
scheduler
=
SchedulerHandle
::
spawn
(
command
,
"scheduler.py"
.into
())
.unwrap
();
block_on
(
scheduler
.async_request_parameters
())
.unwrap_err
();
block_on
(
scheduler
.async_request_parameters
(
"hhh"
.into
()
))
.unwrap_err
();
block_on
(
scheduler
.async_record_output
(
"params_from_rust"
.into
(),
"stdout"
.into
(),
"stderr"
.into
(),
0
,
"1.5"
.into
(),
"."
.into
()))
.unwrap_err
();
block_on
(
scheduler
.async_record_output
(
"hhh"
.into
(),
"params_from_rust"
.into
(),
"stdout"
.into
(),
"stderr"
.into
(),
0
,
"1.5"
.into
(),
"."
.into
()))
.unwrap_err
();
}
...
...
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