@@ -15,13 +15,15 @@ function mock_non_existing_fn() {
1515}
1616
1717function test_now_with_perl() {
18+ mock clock::shell_time mock_non_existing_fn
1819 mock perl echo " 1720705883457"
1920
2021 assert_same " 1720705883457" " $( clock::now) "
2122}
2223
2324function test_now_on_linux_unknown() {
2425 mock_unknown_linux_os
26+ mock clock::shell_time mock_non_existing_fn
2527 mock perl mock_non_existing_fn
2628 mock date echo " 1720705883457"
2729
@@ -30,6 +32,7 @@ function test_now_on_linux_unknown() {
3032
3133function test_now_on_linux_alpine() {
3234 mock_alpine_os
35+ mock clock::shell_time mock_non_existing_fn
3336 mock perl echo " 1720705883457"
3437
3538 assert_same " 1720705883457" " $( clock::now) "
@@ -40,6 +43,7 @@ function test_now_on_windows_without_with_powershell() {
4043 mock dependencies::has_perl mock_false
4144 mock dependencies::has_powershell mock_true
4245 mock powershell echo " 1727768183281580800"
46+ mock clock::shell_time mock_non_existing_fn
4347
4448 assert_same " 1727768183281580800" " $( clock::now) "
4549}
@@ -49,6 +53,7 @@ function test_now_on_windows_without_without_powershell() {
4953 mock dependencies::has_perl mock_false
5054 mock dependencies::has_powershell mock_false
5155 mock date echo " 1727768951"
56+ mock clock::shell_time mock_non_existing_fn
5257
5358 assert_same " 1727768951" " $( clock::now) "
5459}
0 commit comments