Skip to content

Commit

Permalink
fix: change wrong variable name on cluster update test to avoid misu… (
Browse files Browse the repository at this point in the history
  • Loading branch information
atilsensalduz committed Nov 17, 2022
1 parent a044f7f commit 86e830a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mongodbatlas/clusters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,16 +696,16 @@ func TestClusters_Update(t *testing.T) {
fmt.Fprint(w, jsonBlob)
})

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

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

if id := dbUser.GroupID; id != groupID {
if id := cluster.GroupID; id != groupID {
t.Errorf("expected groupId '%s', received '%s'", groupID, id)
}
}
Expand Down

0 comments on commit 86e830a

Please sign in to comment.