Skip to content

Commit

Permalink
Add regression-test for #2889
Browse files Browse the repository at this point in the history
…but disable it for Mac for now
  • Loading branch information
emilk committed Oct 19, 2023
1 parent 7211d51 commit 1c0a13e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions crates/re_sdk/src/recording_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1620,4 +1620,18 @@ mod tests {
// That's all.
assert!(msgs.pop().is_none());
}

#[test]
#[cfg(not(target_os = "macos"))] // TODO(#2889): https://github.com/rerun-io/rerun/issues/2889
fn test_set_thread_local() {
std::thread::spawn(|| {
// Regression-test for https://github.com/rerun-io/rerun/issues/2889
let stream = RecordingStreamBuilder::new("rerun_example_test")
.buffered()
.unwrap();
RecordingStream::set_thread_local(StoreKind::Recording, Some(stream));
})
.join()
.unwrap();
}
}

0 comments on commit 1c0a13e

Please sign in to comment.