close websocket after test (#5652)

close the websocket properly
This commit is contained in:
Paul Tagliamonte
2025-03-05 22:09:00 -05:00
committed by GitHub
parent 8aa46099a8
commit 4e1b0daacb

View File

@ -2057,6 +2057,8 @@ sketch000 = startSketchOn('XY')
// Ensure nothing is left in the batch // Ensure nothing is left in the batch
assert!(ctx.engine.batch().read().await.is_empty()); assert!(ctx.engine.batch().read().await.is_empty());
assert!(ctx.engine.batch_end().read().await.is_empty()); assert!(ctx.engine.batch_end().read().await.is_empty());
ctx.close().await;
} }
#[tokio::test(flavor = "multi_thread")] #[tokio::test(flavor = "multi_thread")]
@ -2080,6 +2082,8 @@ async fn kcl_test_ensure_nothing_left_in_batch_multi_file() {
// Ensure nothing is left in the batch // Ensure nothing is left in the batch
assert!(ctx.engine.batch().read().await.is_empty()); assert!(ctx.engine.batch().read().await.is_empty());
assert!(ctx.engine.batch_end().read().await.is_empty()); assert!(ctx.engine.batch_end().read().await.is_empty());
ctx.close().await;
} }
#[tokio::test(flavor = "multi_thread")] #[tokio::test(flavor = "multi_thread")]