Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd74afc

Browse files
authored
fix: Increase randomness for names used in tests (#3063)
We are starting to run into test flakes due to lack of randomness in CI,this change simply bumps randomness by additional suffix numbers.See:#3038 (comment)
1 parent87b0b4b commitcd74afc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎coderd/coderdtest/coderdtest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func CreateAnotherUser(t *testing.T, client *codersdk.Client, organizationID uui
271271

272272
funccreateAnotherUserRetry(t*testing.T,client*codersdk.Client,organizationID uuid.UUID,retriesint,roles...string)*codersdk.Client {
273273
req:= codersdk.CreateUserRequest{
274-
Email:namesgenerator.GetRandomName(1)+"@coder.com",
274+
Email:namesgenerator.GetRandomName(10)+"@coder.com",
275275
Username:randomUsername(),
276276
Password:"testpass",
277277
OrganizationID:organizationID,
@@ -677,7 +677,7 @@ func NewAzureInstanceIdentity(t *testing.T, instanceID string) (x509.VerifyOptio
677677
}
678678

679679
funcrandomUsername()string {
680-
returnstrings.ReplaceAll(namesgenerator.GetRandomName(0),"_","-")
680+
returnstrings.ReplaceAll(namesgenerator.GetRandomName(10),"_","-")
681681
}
682682

683683
// Used to easily create an HTTP transport!

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp