From 872f8705790e152e0789e6756620df1fb514123b Mon Sep 17 00:00:00 2001 From: Nate Broyles Date: Tue, 5 Oct 2021 11:47:31 -0400 Subject: [PATCH] [tests] Check for nil options before using isolation groups --- 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) }