Skip to content

Commit

Permalink
long running tests are shortened
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugur Arikan (DHL Data & Analytics) committed Jul 23, 2024
1 parent 9399df2 commit 45087fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/pinned_vec_tests/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mod tests {

#[test]
fn test_insert_medium() {
let capacity = 1024 * 64;
let capacity = 512;
let pinned_vec = TestVec::new(capacity);
insert(pinned_vec, capacity);
}
Expand Down
9 changes: 1 addition & 8 deletions src/pinned_vec_tests/pop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@ mod tests {

#[test]
fn test_pop_medium() {
let capacity = 1024 * 64;
let pinned_vec = TestVec::new(capacity);
pop(pinned_vec, capacity);
}

#[test]
fn test_pop_large() {
let capacity = 1024 * 1024;
let capacity = 512;
let pinned_vec = TestVec::new(capacity);
pop(pinned_vec, capacity);
}
Expand Down
9 changes: 1 addition & 8 deletions src/pinned_vec_tests/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ mod tests {

#[test]
fn test_push_medium() {
let capacity = 1024 * 64;
let pinned_vec = TestVec::new(capacity);
push(pinned_vec, capacity);
}

#[test]
fn test_push_large() {
let capacity = 1024 * 1024;
let capacity = 1024 * 4;
let pinned_vec = TestVec::new(capacity);
push(pinned_vec, capacity);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pinned_vec_tests/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mod tests {

#[test]
fn test_remove_medium() {
let capacity = 1024 * 64;
let capacity = 512;
let pinned_vec = TestVec::new(capacity);
remove(pinned_vec, capacity);
}
Expand Down
2 changes: 1 addition & 1 deletion src/pinned_vec_tests/test_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mod tests {
#[should_panic]
fn capacity_exceeding_vec_fails() {
// not necessarily fails in every expansion, but will eventually fail.
let lengths = [8, 32, 1024, 32768];
let lengths = [8, 32, 1025];
for len in lengths {
let vec = JustVec(Vec::with_capacity(0));
test_pinned_vec(vec, len);
Expand Down
2 changes: 1 addition & 1 deletion src/pinned_vec_tests/truncate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mod tests {

#[test]
fn test_truncate_medium() {
let capacity = 1024 * 64;
let capacity = 1024 * 4;
let pinned_vec = TestVec::new(capacity);
truncate(pinned_vec, capacity);
}
Expand Down

0 comments on commit 45087fe

Please sign in to comment.