Skip to content

Commit

Permalink
[tests] Check for nil options before using isolation groups (#3817)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbroyles authored Oct 5, 2021
1 parent 17418a2 commit e40889e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integration/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e40889e

Please sign in to comment.