fix(test): remove t.Parallel from auth store tests using t.Setenv
Tests that call t.Setenv cannot use t.Parallel (Go runtime restriction). Remove t.Parallel from TestStoreRoundtrip, TestStoreFilePermissions, TestStoreMultiProvider, TestDeleteCredential, and TestLoadStoreEmpty.
This commit is contained in:
parent
906d11612d
commit
8d5d3eef69
1 changed files with 0 additions and 4 deletions
|
|
@ -53,7 +53,6 @@ func TestAuthCredentialNeedsRefresh(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestStoreRoundtrip(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpDir := t.TempDir()
|
||||
origHome := os.Getenv("HOME")
|
||||
t.Setenv("HOME", tmpDir)
|
||||
|
|
@ -117,7 +116,6 @@ func TestStoreFilePermissions(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestStoreMultiProvider(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpDir := t.TempDir()
|
||||
origHome := os.Getenv("HOME")
|
||||
t.Setenv("HOME", tmpDir)
|
||||
|
|
@ -151,7 +149,6 @@ func TestStoreMultiProvider(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDeleteCredential(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpDir := t.TempDir()
|
||||
origHome := os.Getenv("HOME")
|
||||
t.Setenv("HOME", tmpDir)
|
||||
|
|
@ -176,7 +173,6 @@ func TestDeleteCredential(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestLoadStoreEmpty(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpDir := t.TempDir()
|
||||
origHome := os.Getenv("HOME")
|
||||
t.Setenv("HOME", tmpDir)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue