fix: tests

This commit is contained in:
Aravinth Manivannan 2023-09-27 22:15:47 +05:30
parent 67f9d5f7cf
commit 9d59085608
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
2 changed files with 7 additions and 1 deletions

View File

@ -83,6 +83,7 @@ mod tests {
let target = Target {
version: "1".into(),
name: "launch_init_containers_works".into(),
container_host: Url::parse("http://launch_init_containers_works.service").unwrap(),
homepage: Url::parse("https://launch_init_containers_works.example.org").unwrap(),
repository: Url::parse("https://launch_init_containers_works.example.org").unwrap(),
init_scripts: Some(vec![Test {

View File

@ -224,7 +224,12 @@ mod tests {
tests: vec![dummy_test.clone(), dummy_test2.clone()],
};
let state = SuiteRunnerState::launch_suite(&suite, AUTH, &ctx);
let state = SuiteRunnerState::launch_suite(
&Url::parse("http://suite_runner_works.service").unwrap(),
&suite,
AUTH,
&ctx,
);
assert_eq!(state.tests.len(), 2);
std::thread::sleep(std::time::Duration::new(13, 0));