From 6372a4bf02bfd3f88b6f39fb888617f9eda18e4c Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:25:39 -0400 Subject: [PATCH] Fix missing import in tests --- crates/nu-std/testing.nu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu-std/testing.nu b/crates/nu-std/testing.nu index 489430e462..e2ec10ac98 100644 --- a/crates/nu-std/testing.nu +++ b/crates/nu-std/testing.nu @@ -287,6 +287,8 @@ export def run-tests [ --list, # list the selected tests without running them. --threads: int@"nu-complete threads", # Amount of threads to use for parallel execution. Default: All threads are utilized ] { + use std log + let available_threads = (sys cpu | length) # Can't use pattern matching here due to https://github.com/nushell/nushell/issues/9198