Skip to content

Commit

Permalink
chore: increase message timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Dec 29, 2023
1 parent 41c4b9b commit 769a593
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ async fn subscribe(
.await
.unwrap();

let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_SUBSCRIBE_RESPONSE_TAG && msg.topic == response_topic {
Expand Down Expand Up @@ -2780,7 +2780,7 @@ async fn watch_subscriptions(
.await
.unwrap();

let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_WATCH_SUBSCRIPTIONS_RESPONSE_TAG && msg.topic == response_topic {
Expand Down Expand Up @@ -2851,7 +2851,7 @@ async fn accept_watch_subscriptions_changed(
relay_ws_client: &relay_client::websocket::Client,
rx: &mut UnboundedReceiver<RelayClientEvent>,
) -> Vec<NotifyServerSubscription> {
let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_SUBSCRIPTIONS_CHANGED_TAG
Expand Down Expand Up @@ -2939,7 +2939,7 @@ async fn accept_notify_message(
notify_key: &[u8; 32],
rx: &mut UnboundedReceiver<RelayClientEvent>,
) -> (u64, NotifyMessage) {
let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_MESSAGE_TAG && msg.topic == topic_from_key(notify_key) {
Expand Down Expand Up @@ -3062,7 +3062,7 @@ async fn update(
.await;

let response_topic = topic_from_key(&notify_key);
let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_UPDATE_RESPONSE_TAG && msg.topic == response_topic {
Expand Down Expand Up @@ -3141,7 +3141,7 @@ async fn delete(
.await;

let response_topic = topic_from_key(&notify_key);
let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(rx).await;
if msg.tag == NOTIFY_DELETE_RESPONSE_TAG && msg.topic == response_topic {
Expand Down Expand Up @@ -3509,7 +3509,7 @@ async fn sends_noop(notify_server: &NotifyServerContext) {
.await
.unwrap();

let msg = tokio::time::timeout(std::time::Duration::from_secs(5), async {
let msg = tokio::time::timeout(std::time::Duration::from_secs(10), async {
loop {
let msg = accept_message(&mut rx).await;
if msg.tag == NOTIFY_NOOP_TAG && msg.topic == notify_topic {
Expand Down

0 comments on commit 769a593

Please sign in to comment.