Reduce some numbers to make cargo test run faster

This reduces the test time by ~33% on my system (23s to 15s)

Given that it takes ~180-240s on Github Actions, if we get a reduction
like that we can save over a minute.
This commit is contained in:
Fabian Boehm
2024-02-02 16:44:36 +01:00
parent bcebcdc0ad
commit 5d2d44feed
2 changed files with 2 additions and 2 deletions

View File

@@ -690,7 +690,7 @@ fn test_expand_argument_list() {
fn test_1_cancellation(src: &wstr) {
let filler = IoBufferfill::create().unwrap();
let delay = Duration::from_millis(500);
let delay = Duration::from_millis(100);
let thread = unsafe { libc::pthread_self() } as usize;
iothread_perform(move || {
// Wait a while and then SIGINT the main thread.

View File

@@ -155,7 +155,7 @@ fn test_escape_no_printables() {
}
/// The number of tests to run.
const ESCAPE_TEST_COUNT: usize = 100_000;
const ESCAPE_TEST_COUNT: usize = 20_000;
/// The average length of strings to unescape.
const ESCAPE_TEST_LENGTH: usize = 100;
/// The highest character number of character to try and escape.