- Notifications
You must be signed in to change notification settings - Fork921
Commit409e2c7
authored
fix: use random names for TestUpdateUserProfile (#15868)
Fixes a flake seen inhttps://github.com/coder/coder/actions/runs/12346801529/job/34452940351It's possible but exceedingly rare for the randomly generated usernameto be exactly 32 characters.Then, appending a `1` to that username causes the username to be invalidand the test to fail. Instead of appending we'll just generate a newusername that is <=32 characters.The `UpdateSelf` subtest has the same appending, but uses a fixedusername that is less than 32 characters, so it doesn't need to bechanged.1 parentc92f480 commit409e2c7
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1005 | 1005 |
| |
1006 | 1006 |
| |
1007 | 1007 |
| |
1008 |
| - | |
| 1008 | + | |
1009 | 1009 |
| |
1010 | 1010 |
| |
1011 | 1011 |
| |
1012 | 1012 |
| |
1013 | 1013 |
| |
| 1014 | + | |
| 1015 | + | |
1014 | 1016 |
| |
1015 |
| - | |
1016 |
| - | |
| 1017 | + | |
| 1018 | + | |
1017 | 1019 |
| |
1018 | 1020 |
| |
1019 | 1021 |
| |
1020 | 1022 |
| |
1021 | 1023 |
| |
1022 |
| - | |
1023 |
| - | |
| 1024 | + | |
| 1025 | + | |
1024 | 1026 |
| |
1025 | 1027 |
| |
1026 | 1028 |
| |
|
0 commit comments
Comments
(0)