From 85d47d2fd4a40f810fc5c61ae7b72f8cb2e0446a Mon Sep 17 00:00:00 2001 From: Julien Caillon Date: Wed, 8 Jan 2025 12:08:00 +0100 Subject: [PATCH] :test_tube: fixed tests --- tests.d/1009-lib-benchmark/00.tests.sh | 10 +++------- tests.d/1009-lib-benchmark/results.approved.md | 17 +++-------------- version | 2 +- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/tests.d/1009-lib-benchmark/00.tests.sh b/tests.d/1009-lib-benchmark/00.tests.sh index bfc016d1..de8019ac 100644 --- a/tests.d/1009-lib-benchmark/00.tests.sh +++ b/tests.d/1009-lib-benchmark/00.tests.sh @@ -6,24 +6,20 @@ source benchmark source io function test_function_1() { - io::sleep 0.01 + : } function test_function_2() { - io::sleep 0.05 + : } function test_function_3() { - io::sleep 0.03 + : } function test_benchmark::run() { declare -f test_function_1 test_function_2 test_function_3 - echo - echo "→ benchmark::run test_function_1 '' 1" - benchmark::run test_function_1 '' 1 - echo echo "→ benchmark::run test_function_1 test_function_2,test_function_3 3 5" benchmark::run test_function_1 test_function_2,test_function_3 3 5 diff --git a/tests.d/1009-lib-benchmark/results.approved.md b/tests.d/1009-lib-benchmark/results.approved.md index 64b1b8d9..4b094b3c 100644 --- a/tests.d/1009-lib-benchmark/results.approved.md +++ b/tests.d/1009-lib-benchmark/results.approved.md @@ -11,29 +11,18 @@ Exit code: `0` ```plaintext test_function_1 () { - io::sleep 0.01 + : } test_function_2 () { - io::sleep 0.05 + : } test_function_3 () { - io::sleep 0.03 + : } -→ benchmark::run test_function_1 '' 1 - → benchmark::run test_function_1 test_function_2,test_function_3 3 5 -INFO Running the baseline ⌜test_function_X⌝ for ⌜Xs⌝. -INFO The baseline ⌜test_function_X⌝ was initially run ⌜X⌝ times in ⌜X.Xs⌝. -INFO The function ⌜test_function_X⌝ was run ⌜X⌝ times in ⌜X.Xs⌝. -SUCCESS Benchmark results from fastest to slowest: - -Function name ░ Average time ░ Compared to fastest -░b -test_function_X ░ X.Xs Xµs ░ N/A - INFO Running the baseline ⌜test_function_X⌝ for ⌜Xs⌝. INFO The baseline ⌜test_function_X⌝ was initially run ⌜X⌝ times in ⌜X.Xs⌝. INFO The function ⌜test_function_X⌝ was run ⌜X⌝ times in ⌜X.Xs⌝. diff --git a/version b/version index 99dd82a0..d4781098 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.28.474 \ No newline at end of file +0.28.478 \ No newline at end of file