diff --git a/pkg/miscellaneous/miscellaneous.go b/pkg/miscellaneous/miscellaneous.go index 65b5fcbde..6b72c3ea9 100644 --- a/pkg/miscellaneous/miscellaneous.go +++ b/pkg/miscellaneous/miscellaneous.go @@ -605,6 +605,7 @@ func RemoveDir(dir string) error { return nil } +// IsUnitTestEnv checks whether the environment is unit test or not. func IsUnitTestEnv() bool { return os.Getenv("UNIT_TEST") == "true" }