From 833530eb12ad85cd042f6f2acac3d13791680cbd Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 3 Nov 2023 15:51:24 -0700 Subject: [PATCH] [Tests] attempt to fix failing test --- .../Running 'nvm unload' should unset all function and variables | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fast/Running 'nvm unload' should unset all function and variables b/test/fast/Running 'nvm unload' should unset all function and variables index e7fb706bdf..307f1793b5 100755 --- a/test/fast/Running 'nvm unload' should unset all function and variables +++ b/test/fast/Running 'nvm unload' should unset all function and variables @@ -24,6 +24,7 @@ env | grep -v PATH= | grep -v IFS= | sort >> "${AFTER}" ! type nvm > /dev/null 2>&1 || die "nvm not unloaded" +diff "${BEFORE}" "${AFTER}" DIFF="$(diff "${BEFORE}" "${AFTER}" ||:)" [ -z "${DIFF}" ] || die "function pollution found: ${DIFF}"