Skip to content

Commit

Permalink
test: ignore selective tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chmod77 committed Aug 31, 2024
1 parent 6b355b9 commit 2211752
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,23 @@ async fn test_pusher_client_connection() {
);
}

// #[tokio::test]
// async fn test_channel_subscription() {
// let mut client = setup_client().await;
#[tokio::test]
#[ignore]
async fn test_channel_subscription() {
let mut client = setup_client().await;

// client.connect().await.unwrap();
// client.subscribe("test-channel").await.unwrap();
// client.connect().await.unwrap();
client.subscribe("test-channel").await.unwrap();

// let channels = client.get_subscribed_channels().await;
// log::info!("Subscribed channels: {:?}", channels);
// assert!(channels.contains(&"test-channel".to_string()));
let channels = client.get_subscribed_channels().await;
log::info!("Subscribed channels: {:?}", channels);
assert!(channels.contains(&"test-channel".to_string()));

// client.unsubscribe("test-channel").await.unwrap();
client.unsubscribe("test-channel").await.unwrap();

// let channels = client.get_subscribed_channels().await;
// assert!(!channels.contains(&"test-channel".to_string()));
// }
let channels = client.get_subscribed_channels().await;
assert!(!channels.contains(&"test-channel".to_string()));
}

#[tokio::test]
async fn test_event_binding() {
Expand Down Expand Up @@ -171,5 +172,5 @@ async fn test_send_payload() {
// .unsubscribe(test_channel)
// .await
// .expect("Failed to unsubscribe from channel");
client.disconnect().await.expect("Failed to disconnect");
// client.disconnect().await.expect("Failed to disconnect");
}

0 comments on commit 2211752

Please sign in to comment.