Skip to content

Commit 254ff10

Browse files
committed
fix(tests_suite_test.go): use the same random number for all randomly generated credentials
1 parent 726b448 commit 254ff10

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

_tests/tests_suite_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ func TestTests(t *testing.T) {
3737
}
3838

3939
var (
40-
testAdminUser = fmt.Sprintf("test-admin-%d", rand.Intn(1000))
40+
randSuffix = rand.Intn(1000)
41+
testAdminUser = fmt.Sprintf("test-admin-%d", randSuffix)
4142
testAdminPassword = "asdf1234"
42-
testAdminEmail = fmt.Sprintf("test-admin-%d@deis.io", rand.Intn(1000))
43-
testUser = fmt.Sprintf("test-%d", rand.Intn(1000))
43+
testAdminEmail = fmt.Sprintf("test-admin-%d@deis.io", randSuffix)
44+
testUser = fmt.Sprintf("test-%d", randSuffix)
4445
testPassword = "asdf1234"
45-
testEmail = fmt.Sprintf("test-%d@deis.io", rand.Intn(1000))
46+
testEmail = fmt.Sprintf("test-%d@deis.io", randSuffix)
4647
url = getController()
4748
)
4849

0 commit comments

Comments
 (0)