Skip to content

Commit 86e830a

Browse files
fix: change wrong variable name on cluster update test to avoid misu… (#328)
1 parent a044f7f commit 86e830a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mongodbatlas/clusters_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,16 +696,16 @@ func TestClusters_Update(t *testing.T) {
696696
fmt.Fprint(w, jsonBlob)
697697
})
698698

699-
dbUser, _, err := client.Clusters.Update(ctx, groupID, clusterName, updateRequest)
699+
cluster, _, err := client.Clusters.Update(ctx, groupID, clusterName, updateRequest)
700700
if err != nil {
701701
t.Fatalf("Clusters.Update returned error: %v", err)
702702
}
703703

704-
if name := dbUser.Name; name != clusterName {
704+
if name := cluster.Name; name != clusterName {
705705
t.Errorf("expected name '%s', received '%s'", clusterName, name)
706706
}
707707

708-
if id := dbUser.GroupID; id != groupID {
708+
if id := cluster.GroupID; id != groupID {
709709
t.Errorf("expected groupId '%s', received '%s'", groupID, id)
710710
}
711711
}

0 commit comments

Comments
 (0)