KeyringServiceName generates a test service name for use with the OS keyring. It intends to prevent keyring usage collisions between parallel tests within a process and parallel test processes (which may occur on CI).
(t *testing.T)
| 10 | // It intends to prevent keyring usage collisions between parallel tests within a |
| 11 | // process and parallel test processes (which may occur on CI). |
| 12 | func KeyringServiceName(t *testing.T) string { |
| 13 | t.Helper() |
| 14 | return t.Name() + "_" + fmt.Sprintf("%v", os.Getpid()) |
| 15 | } |