Skip to content

Commit 7297c3c

Browse files
committed
more refactor
1 parent 2304fca commit 7297c3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/util/buildinfo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ func GetBuildInfo(ctx context.Context, client *mongo.Client) (BuildInfo, error)
3030

3131
var msg string
3232
_, err = mbson.RawLookup(rawResp, &msg, "msg")
33+
if err != nil {
34+
return BuildInfo{}, errors.Wrap(err, "failed to determine topology from build info")
35+
}
3336
bi.IsSharded = msg == "isdbgrid"
3437

3538
return bi, nil

internal/verifier/integration_test_suite.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ const (
2424
TopologySharded TestTopology = "sharded"
2525
)
2626

27-
var knownTopologies = []TestTopology{TopologyReplset, TopologySharded}
28-
2927
type IntegrationTestSuite struct {
3028
suite.Suite
3129
srcConnStr, dstConnStr, metaConnStr string

0 commit comments

Comments
 (0)