From 0dc82eac1395b8cf8387560da64963e8eb894bd6 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 28 Oct 2021 15:27:15 +0200 Subject: [PATCH] Correctly disable ZFS for test cases (#2182) Disable `collector/zfs_linux_test.go` in case `!nozfs` is set to completely disable ZFS. Signed-off-by: Benjamin Drung --- collector/zfs_linux_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/collector/zfs_linux_test.go b/collector/zfs_linux_test.go index 8c29acdd..b9aec144 100644 --- a/collector/zfs_linux_test.go +++ b/collector/zfs_linux_test.go @@ -11,6 +11,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !nozfs +// +build !nozfs + package collector import (