Skip to content

Commit c6c32ef

Browse files
committed
increase timeout temporarly for test
1 parent 4ca4ca9 commit c6c32ef

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
name: Test ${{ matrix.crate }}
2020
runs-on: ${{ fromJSON(
2121
github.repository == 'libp2p/rust-libp2p' && (
22-
(contains(fromJSON('["libp2p-webrtc", "libp2p"]'), matrix.crate) && '["self-hosted", "linux", "x64", "2xlarge"]') ||
23-
(contains(fromJSON('["libp2p-quic", "libp2p-perf"]'), matrix.crate) && '["self-hosted", "linux", "x64", "xlarge"]') ||
22+
(contains(fromJSON('["libp2p"]'), matrix.crate) && '["self-hosted", "linux", "x64", "2xlarge"]') ||
23+
(contains(fromJSON('["libp2p-webrtc", "libp2p-quic", "libp2p-perf"]'), matrix.crate) && '["self-hosted", "linux", "x64", "xlarge"]') ||
2424
'["self-hosted", "linux", "x64", "large"]'
2525
) || '"ubuntu-latest"') }}
2626
timeout-minutes: 10
@@ -31,6 +31,7 @@ jobs:
3131
crate: ${{ fromJSON(needs.gather_published_crates.outputs.members) }}
3232
env:
3333
CRATE: ${{ matrix.crate }}
34+
RUST_LOG: info
3435
steps:
3536
- uses: actions/checkout@v4
3637
with:
@@ -46,7 +47,7 @@ jobs:
4647
save-if: false
4748

4849
- name: Run all tests
49-
run: cargo test --package "$CRATE" --all-features
50+
run: cargo test --package "$CRATE" --all-features -- --test-threads=1
5051

5152
- name: Check if we compile without any features activated
5253
run: cargo build --package "$CRATE" --no-default-features

transports/webrtc/src/tokio/upgrade.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async fn create_substream_for_noise_handshake(conn: &RTCPeerConnection) -> Resul
199199
// Wait until the data channel is opened and detach it.
200200
crate::tokio::connection::register_data_channel_open_handler(data_channel, tx).await;
201201

202-
let channel = match futures::future::select(rx, Delay::new(Duration::from_secs(10))).await {
202+
let channel = match futures::future::select(rx, Delay::new(Duration::from_secs(60))).await {
203203
Either::Left((Ok(channel), _)) => channel,
204204
Either::Left((Err(_), _)) => {
205205
return Err(Error::Internal("failed to open data channel".to_owned()))

transports/webrtc/tests/smoke.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ async fn smoke() {
5353
let (a_peer_id, mut a_transport) = create_transport();
5454
let (b_peer_id, mut b_transport) = create_transport();
5555

56-
let addr = start_listening(&mut a_transport, "/ip4/127.0.0.1/udp/0/webrtc-direct").await;
57-
start_listening(&mut b_transport, "/ip4/127.0.0.1/udp/0/webrtc-direct").await;
56+
let addr = start_listening(&mut a_transport, "/ip4/0.0.0.0/udp/0/webrtc-direct").await;
57+
tracing::info!("ip addr: {:?}", addr);
58+
let addr2 = start_listening(&mut b_transport, "/ip4/0.0.0.0/udp/0/webrtc-direct").await;
59+
tracing::info!("ip addr: {:?}", addr2);
5860
let ((a_connected, _, _), (b_connected, _)) =
5961
connect(&mut a_transport, &mut b_transport, addr).await;
6062

0 commit comments

Comments
 (0)