mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
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:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user