]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] os/user: user random name for the test user account
authorqmuntal <quimmuntal@gmail.com>
Thu, 24 Jul 2025 13:38:35 +0000 (15:38 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 30 Jul 2025 18:52:37 +0000 (11:52 -0700)
commit731de13dc37dead19bb02917447d1cd8991f7eda
treea25d9deb14a374aad8a4bbfdeef1aafd57ec16ff
parent390ffce7d60abf7d5317c0a78beef64affd0059a
[release-branch.go1.24] os/user: user random name for the test user account

TestImpersonated and TestGroupIdsTestUser are flaky due to sporadic
failures when creating the test user account when running the tests
from different processes at the same time.

This flakiness can be fixed by using a random name for the test user
account.

For #73523.
Fixes #74760.

Cq-Include-Trybots: luci.golang.try:go1.24-windows-amd64-longtest
Change-Id: Ib2283a888437420502b1c11d876c975f5af4bc03
Reviewed-on: https://go-review.googlesource.com/c/go/+/690175
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org>
(cherry picked from commit 374e3be2eb9b546ef1340f750e343c15a8f87dde)
Reviewed-on: https://go-review.googlesource.com/c/go/+/690556
Reviewed-by: Mark Freeman <mark@golang.org>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/os/user/user_windows_test.go