Skip to content

Commit

Permalink
expand test repo with multi-remote refs
Browse files Browse the repository at this point in the history
  • Loading branch information
gulbanana committed Mar 20, 2024
1 parent f22da42 commit 108311f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Binary file added src-tauri/resources/test-repo-old.zip
Binary file not shown.
Binary file modified src-tauri/resources/test-repo.zip
Binary file not shown.
16 changes: 8 additions & 8 deletions src-tauri/src/worker/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod revs {
use super::mkid;

pub fn working_copy() -> RevId {
mkid("kppkuplp", "a625ed5aa71d7c68b98b1d1521b2e1cbd0c54a0d")
mkid("nnloouly", "56018b94eb61a9acddc58ad7974aa51c3368eadd")
}

pub fn main_branch() -> RevId {
Expand Down Expand Up @@ -216,15 +216,15 @@ mod session {
tx.send(SessionEvent::EndSession)?;

WorkerSession {
force_log_page_size: Some(6),
force_log_page_size: Some(7),
..Default::default()
}
.handle_events(&rx)?;

rx_load.recv()??;

let page1 = rx_page1.recv()??;
assert_eq!(6, page1.rows.len());
assert_eq!(7, page1.rows.len());
assert_eq!(true, page1.has_more);

let page2 = rx_page2.recv()??;
Expand Down Expand Up @@ -259,19 +259,19 @@ mod session {
tx.send(SessionEvent::EndSession)?;

WorkerSession {
force_log_page_size: Some(6),
force_log_page_size: Some(7),
..Default::default()
}
.handle_events(&rx)?;

rx_load.recv()??;

let page1 = rx_page1.recv()??;
assert_eq!(6, page1.rows.len());
assert_eq!(7, page1.rows.len());
assert_eq!(true, page1.has_more);

let page1b = rx_page1b.recv()??;
assert_eq!(6, page1b.rows.len());
assert_eq!(7, page1b.rows.len());
assert_eq!(true, page1b.has_more);

let page2 = rx_page2.recv()??;
Expand Down Expand Up @@ -306,15 +306,15 @@ mod session {
tx.send(SessionEvent::EndSession)?;

WorkerSession {
force_log_page_size: Some(6),
force_log_page_size: Some(7),
..Default::default()
}
.handle_events(&rx)?;

rx_load.recv()??;

let page1 = rx_page1.recv()??;
assert_eq!(6, page1.rows.len());
assert_eq!(7, page1.rows.len());
assert_eq!(true, page1.has_more);

let rev = rx_rev.recv()??;
Expand Down

0 comments on commit 108311f

Please sign in to comment.