Skip to content

Commit

Permalink
backend: narrow down scope of test to whether backend is send
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory authored and Gregory committed Apr 1, 2021
1 parent a81a37d commit 2f6cb59
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions automerge-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,12 @@ pub use error::AutomergeError;

#[cfg(test)]
mod tests {
use std::{
sync::{Arc, Mutex},
thread,
};
use std::thread;

#[test]
fn sync_and_send_backend() {
fn test_backend_is_send() {
let b = crate::Backend::init();
let mb = Arc::new(Mutex::new(b));
thread::spawn(move || {
let b = mb.lock().unwrap();
b.get_changes(&[]);
});
}
Expand Down

0 comments on commit 2f6cb59

Please sign in to comment.