From e40889e04c0af0d05f764a22b68b09443367dc1d Mon Sep 17 00:00:00 2001 From: nate Date: Tue, 5 Oct 2021 12:07:09 -0400 Subject: [PATCH] [tests] Check for nil options before using isolation groups (#3817) --- src/integration/resources/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integration/resources/resources.go b/src/integration/resources/resources.go index 7ec8f34929..ae1a3d474b 100644 --- a/src/integration/resources/resources.go +++ b/src/integration/resources/resources.go @@ -56,7 +56,7 @@ func SetupCluster(cluster M3Resources, opts *ClusterOptions) error { // nolint: logger.Error("could not get host details", zap.Error(err)) return err } - if opts.NumIsolationGroups > 0 { + if opts != nil && opts.NumIsolationGroups > 0 { h.IsolationGroup = fmt.Sprintf("isogroup-%d", int32(i)%opts.NumIsolationGroups) }