Skip to content

Commit

Permalink
Cleanups and added docker-compose ps for easier CI debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Isawan committed Jul 27, 2023
1 parent 312af30 commit 53e0d8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: cargo build --verbose
- name: Start containers
run: docker-compose up -d
- name: Show containers
run: docker-compose ps
- name: Run tests
run: cargo test --verbose --test integration
env:
Expand Down
5 changes: 2 additions & 3 deletions integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ use std::{
net::{IpAddr, Ipv6Addr, SocketAddr},
process::Stdio,
str::from_utf8,
time::{Duration, Instant},
time::Duration,
};

use httpmock::{Method::GET, MockServer};
use reqwest::StatusCode;
use sqlx::{pool::PoolOptions, postgres::PgConnectOptions, Postgres};
use terrashine::{self, config::Args};
Expand Down Expand Up @@ -68,7 +67,7 @@ fn test_end_to_end_terraform_flow(_: PoolOptions<Postgres>, db_options: PgConnec
cancellation_token.child_token(),
tx,
));
let socket = rx.await.unwrap().bind_socket;
let _ = rx.await.unwrap().bind_socket;
let mut terraform = tokio::process::Command::new("terraform");
let process = terraform
.arg("-chdir=resources/test/terraform/random-import-stack/")
Expand Down

0 comments on commit 53e0d8b

Please sign in to comment.