Skip to content

Commit b67c737

Browse files
committed
Add a cfg option to force the unit tests to use Docker
This will allow building and running them in CI.
1 parent 2ca99e3 commit b67c737

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

compiler/base/orchestrator/src/coordinator.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,8 +1775,15 @@ mod tests {
17751775
}
17761776

17771777
async fn new_coordinator() -> Coordinator<impl Backend> {
1778-
Coordinator::new(TestBackend::new()).await
1779-
//Coordinator::new_docker().await
1778+
#[cfg(not(force_docker))]
1779+
{
1780+
Coordinator::new(TestBackend::new()).await
1781+
}
1782+
1783+
#[cfg(force_docker)]
1784+
{
1785+
Coordinator::new_docker().await
1786+
}
17801787
}
17811788

17821789
const ARBITRARY_EXECUTE_REQUEST: ExecuteRequest = ExecuteRequest {

0 commit comments

Comments
 (0)