Skip to content

Commit 0fabf9a

Browse files
committed
fix
1 parent b8368db commit 0fabf9a

20 files changed

+101
-38
lines changed

test/e2e/access_lists_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestAccessList(t *testing.T) {
3333
g := newAtlasE2ETestGenerator(t)
3434
g.generateProject("accessList")
3535

36-
n := memory(t, "rand", must(RandInt(255)))
36+
n := memoryRand(t, "rand", 255)
3737
req := require.New(t)
3838

3939
entry := fmt.Sprintf("192.168.0.%d", n)

test/e2e/alert_settings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func TestAlertConfig(t *testing.T) {
146146
})
147147

148148
t.Run("Update Setting using file input", func(t *testing.T) {
149-
n := memory(t, "rand", must(RandInt(1000)))
149+
n := memoryRand(t, "rand", 1000)
150150
fileName := fmt.Sprintf("%d_alerts.json", n.Int64())
151151
fileContent := fmt.Sprintf(`{
152152
"eventTypeName": %q,

test/e2e/atlas_org_api_key_access_list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestAtlasOrgAPIKeyAccessList(t *testing.T) {
4040
require.NoError(t, deleteOrgAPIKey(apiKeyID))
4141
})
4242

43-
n := memory(t, "rand", must(RandInt(255)))
43+
n := memoryRand(t, "rand", 255)
4444
entry := fmt.Sprintf("192.168.0.%d", n)
4545

4646
t.Run("Create", func(t *testing.T) {

test/e2e/atlas_org_invitations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestAtlasOrgInvitations(t *testing.T) {
3232
cliPath, err := AtlasCLIBin()
3333
require.NoError(t, err)
3434

35-
n := memory(t, "rand", must(RandInt(1000)))
35+
n := memoryRand(t, "rand", 1000)
3636

3737
emailOrg := fmt.Sprintf("test-%v@mongodb.com", n)
3838
var orgInvitationID string

test/e2e/atlas_orgs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestAtlasOrgs(t *testing.T) {
8181
})
8282
require.NotEmpty(t, userID)
8383

84-
n := memory(t, "rand", must(RandInt(255)))
84+
n := memoryRand(t, "rand", 255)
8585
require.NoError(t, err)
8686
orgName := fmt.Sprintf("e2e-org-%v", n)
8787
var (

test/e2e/atlas_project_invitations_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestAtlasProjectInvitations(t *testing.T) {
3636
g.generateProject("invitations")
3737

3838
var invitationID string
39-
n := memory(t, "rand", must(RandInt(1000)))
39+
n := memoryRand(t, "rand", 1000)
4040
require.NoError(t, err)
4141

4242
emailProject := fmt.Sprintf("test-%v@mongodb.com", n)

test/e2e/atlas_project_teams_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestAtlasProjectTeams(t *testing.T) {
3636
g := newAtlasE2ETestGenerator(t)
3737
g.generateProject("teams")
3838

39-
n := memory(t, "rand", must(RandInt(1000)))
39+
n := memoryRand(t, "rand", 1000)
4040
teamName := fmt.Sprintf("e2e-teams-%v", n)
4141
teamID, err := createTeam(teamName)
4242
require.NoError(t, err)

test/e2e/atlas_projects_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestAtlasProjects(t *testing.T) {
3636
t.Fatalf("unexpected error: %v", err)
3737
}
3838

39-
n := memory(t, "rand", must(RandInt(1000)))
39+
n := memoryRand(t, "rand", 1000)
4040
projectName := fmt.Sprintf("e2e-proj-%d", n)
4141

4242
var projectID string

test/e2e/atlas_team_users_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestAtlasTeamUsers(t *testing.T) {
3333
cliPath, err := AtlasCLIBin()
3434
require.NoError(t, err)
3535

36-
n := memory(t, "rand", must(RandInt(1000)))
36+
n := memoryRand(t, "rand", 1000)
3737

3838
teamName := fmt.Sprintf("teams%v", n)
3939
teamID, err := createTeam(teamName)

test/e2e/atlas_teams_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestAtlasTeams(t *testing.T) {
3535
t.Fatalf("unexpected error: %v", err)
3636
}
3737

38-
n := memory(t, "rand", must(RandInt(1000)))
38+
n := memoryRand(t, "rand", 1000)
3939

4040
teamName := fmt.Sprintf("teams%v", n)
4141
var teamID string

0 commit comments

Comments
 (0)