From 725c205a8040a59d878b2e07434dc3bf891ab2a3 Mon Sep 17 00:00:00 2001 From: tmatis Date: Wed, 29 Mar 2023 15:31:45 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20show=20loading=20bar=20for=20remain?= =?UTF-8?q?ing=20ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- host/srcs/output/pretty/pretty_test_result.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/srcs/output/pretty/pretty_test_result.c b/host/srcs/output/pretty/pretty_test_result.c index 6b54b14..ebd3797 100644 --- a/host/srcs/output/pretty/pretty_test_result.c +++ b/host/srcs/output/pretty/pretty_test_result.c @@ -106,9 +106,9 @@ void write_test_result_pretty(t_test_result_display *result) const size_t remaining_test = result->total_tests - result->actual_test; const msseconds_t remaining_time = _mean_run_time * remaining_test; - // if less than 1 second remaining, we don't display the time erase_line(); - if (remaining_time > 1000) + // if it's the last test, we don't need to show the loading bar + if (result->total_tests - result->actual_test > 1) write_loading_bar( result->actual_test, result->total_tests,