Fix tests and ignore expensive test

This commit is contained in:
Andras Schmelczer 2025-04-05 13:45:28 +01:00
parent b15e0319a3
commit b0c6c082a1
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 10 additions and 7 deletions

View file

@ -45,7 +45,7 @@ jobs:
- name: Test backend - name: Test backend
run: | run: |
cd backend cd backend
cargo test --verbose cargo test --verbose -- --include-ignored
cd sync_lib cd sync_lib
wasm-pack test --node wasm-pack test --node

View file

@ -132,7 +132,7 @@ mod test {
"both the same word", "both the same word",
); );
test_merge_both_ways(" ", "its utf-8!", " ", "its utf-8!"); test_merge_both_ways(" ", "its utf-8!", " ", "its utf-8!");
test_merge_both_ways( test_merge_both_ways(
"both delete the same word but one a bit more", "both delete the same word but one a bit more",
@ -173,7 +173,7 @@ mod test {
" |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| ", " |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| ",
" |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |d39156cc-cfd6-42a8-b70a-75020896069d| |fbad794c-9c47-41f2-a343-490284ecb5a0| |dup| ", " |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |d39156cc-cfd6-42a8-b70a-75020896069d| |fbad794c-9c47-41f2-a343-490284ecb5a0| |dup| ",
" |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |dup| ", " |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |dup| ",
" |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |d39156cc-cfd6-42a8-b70a-75020896069d| |fbad794c-9c47-41f2-a343-490284ecb5a0| |dup| |dup| "); " |7ca2b36d-6ee7-49eb-8eb1-d77e4cc1a001| |cd9195cc-103a-4f13-90c8-4fba0ba421ee| |d39156cc-cfd6-42a8-b70a-75020896069d| |fbad794c-9c47-41f2-a343-490284ecb5a0| |dup| |dup| ");
} }
#[test] #[test]
@ -358,23 +358,26 @@ mod test {
); );
} }
#[ignore = "expensive to run, only run in CI"]
#[test_matrix( [ #[test_matrix( [
"pride_and_prejudice.txt", "pride_and_prejudice.txt",
"romeo_and_juliet.txt", "romeo_and_juliet.txt",
"room_with_a_view.txt", "room_with_a_view.txt",
"kun_lu.txt", "kun_lu.txt",
"blns.txt"
], [ ], [
"pride_and_prejudice.txt", "pride_and_prejudice.txt",
"romeo_and_juliet.txt", "romeo_and_juliet.txt",
"room_with_a_view.txt", "room_with_a_view.txt",
"kun_lu.txt" "kun_lu.txt",
"blns.txt"
], [ ], [
"pride_and_prejudice.txt", "pride_and_prejudice.txt",
"romeo_and_juliet.txt", "romeo_and_juliet.txt",
"room_with_a_view.txt", "room_with_a_view.txt",
"kun_lu.txt" "kun_lu.txt",
], [0..10000, 10000..20000], [0..10000, 10000..20000], [0..10000, 10000..20000])] "blns.txt"
], [0..10000, 10000..20000, 20000..50000], [0..10000, 10000..20000, 20000..50000], [0..10000, 10000..20000, 20000..50000])]
fn test_merge_files_without_panic( fn test_merge_files_without_panic(
file_name_1: &str, file_name_1: &str,
file_name_2: &str, file_name_2: &str,