Skip to content

Commit f881ab7

Browse files
committed
chore: remove serial_test dependency
Integration tests should be run with --test-threads=1 if needed.
1 parent 430ce3b commit f881ab7

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ macos_15_0 = ["macos_14_4"]
4242
[dev-dependencies]
4343
png = "0.17"
4444
tokio = { version = "1.40", features = ["sync", "rt", "rt-multi-thread", "macros", "test-util"] }
45-
serial_test = "3"

tests/integration_tests.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![allow(clippy::pedantic, clippy::nursery)]
2-
// Integration tests must run serially due to shared ScreenCaptureKit resources
32

43
use screencapturekit::{
54
shareable_content::SCShareableContent,
@@ -12,7 +11,6 @@ use screencapturekit::{
1211
},
1312
CMSampleBuffer,
1413
};
15-
use serial_test::serial;
1614
use std::sync::{Arc, Mutex};
1715
use std::time::Duration;
1816

@@ -47,7 +45,6 @@ impl SCStreamOutputTrait for AudioTestOutput {
4745
}
4846

4947
#[test]
50-
#[serial]
5148
fn test_video_capture() {
5249
// Get shareable content
5350
let content = match SCShareableContent::get() {
@@ -125,7 +122,6 @@ fn test_video_capture() {
125122
}
126123

127124
#[test]
128-
#[serial]
129125
fn test_audio_capture() {
130126
// Get shareable content
131127
let content = match SCShareableContent::get() {
@@ -205,7 +201,6 @@ fn test_audio_capture() {
205201
}
206202

207203
#[test]
208-
#[serial]
209204
fn test_video_and_audio_capture() {
210205
// Get shareable content
211206
let content = match SCShareableContent::get() {
@@ -282,7 +277,6 @@ fn test_video_and_audio_capture() {
282277
}
283278

284279
#[test]
285-
#[serial]
286280
fn test_pixel_buffer_locking() {
287281
// Get shareable content
288282
let content = match SCShareableContent::get() {
@@ -369,7 +363,6 @@ fn test_pixel_buffer_locking() {
369363
}
370364

371365
#[test]
372-
#[serial]
373366
fn test_iosurface_backed_buffer() {
374367
// Get shareable content
375368
let content = match SCShareableContent::get() {

0 commit comments

Comments
 (0)