Skip to content

Commit 2ba73e4

Browse files
committed
Add missing shutdowns in tests
1 parent 055ebf9 commit 2ba73e4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,6 +3446,7 @@ mod tests {
34463446

34473447
coordinator.shutdown().await?;
34483448
}
3449+
34493450
Ok(())
34503451
}
34513452

@@ -3639,6 +3640,8 @@ mod tests {
36393640
let lines = response.code.lines().collect::<Vec<_>>();
36403641
assert_eq!(ARBITRARY_FORMAT_OUTPUT, lines);
36413642

3643+
coordinator.shutdown().await?;
3644+
36423645
Ok(())
36433646
}
36443647

@@ -3659,6 +3662,8 @@ mod tests {
36593662
assert!(response.success, "stderr: {}", response.stderr);
36603663
let lines = response.code.lines().collect::<Vec<_>>();
36613664
assert_eq!(ARBITRARY_FORMAT_OUTPUT, lines);
3665+
3666+
coordinator.shutdown().await?;
36623667
}
36633668

36643669
Ok(())
@@ -3721,6 +3726,8 @@ mod tests {
37213726
assert_contains!(response.stderr, "deny(clippy::eq_op)");
37223727
assert_contains!(response.stderr, "warn(clippy::zero_divided_by_zero)");
37233728

3729+
coordinator.shutdown().await?;
3730+
37243731
Ok(())
37253732
}
37263733

@@ -3752,6 +3759,8 @@ mod tests {
37523759
response.stderr
37533760
);
37543761

3762+
coordinator.shutdown().await?;
3763+
37553764
Ok(())
37563765
},
37573766
)
@@ -3796,6 +3805,8 @@ mod tests {
37963805
assert_contains!(response.stderr, "is out-of-bounds");
37973806
assert_contains!(response.stderr, "has size 0");
37983807

3808+
coordinator.shutdown().await?;
3809+
37993810
Ok(())
38003811
}
38013812

@@ -3832,6 +3843,8 @@ mod tests {
38323843
assert_contains!(response.stdout, "impl ::core::fmt::Debug for Dummy");
38333844
assert_contains!(response.stdout, "Formatter::write_str");
38343845

3846+
coordinator.shutdown().await?;
3847+
38353848
Ok(())
38363849
}
38373850

@@ -3912,6 +3925,8 @@ mod tests {
39123925
let res = coordinator.execute(req).await.unwrap();
39133926
assert_eq!(res.stdout, "hello\n");
39143927

3928+
coordinator.shutdown().await?;
3929+
39153930
Ok(())
39163931
}
39173932

@@ -3975,6 +3990,8 @@ mod tests {
39753990

39763991
assert_contains!(res.stdout, "Failed to connect");
39773992

3993+
coordinator.shutdown().await?;
3994+
39783995
Ok(())
39793996
}
39803997

@@ -4002,6 +4019,8 @@ mod tests {
40024019
// TODO: We need to actually inform the user about this somehow. The UI is blank.
40034020
// assert_contains!(res.stdout, "Killed");
40044021

4022+
coordinator.shutdown().await?;
4023+
40054024
Ok(())
40064025
}
40074026

@@ -4031,6 +4050,8 @@ mod tests {
40314050

40324051
assert_contains!(res.stderr, "Cannot fork");
40334052

4053+
coordinator.shutdown().await?;
4054+
40344055
Ok(())
40354056
}
40364057

0 commit comments

Comments
 (0)