Skip to content

Commit

Permalink
Don't remove config files when running multiple goroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Jan 27, 2024
1 parent 38d9ecd commit 42d6a9a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"context"
"os"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -66,10 +65,6 @@ func Test_runCmd(t *testing.T) {
}(&waitGroup)

waitGroup.Wait()

// Clean up.
require.NoError(t, os.Remove(pluginTestConfigFile))
require.NoError(t, os.Remove(globalTestConfigFile))
}

// Test_runCmdWithTLS tests the run command with TLS enabled on the server.
Expand Down Expand Up @@ -124,9 +119,6 @@ func Test_runCmdWithTLS(t *testing.T) {
}(&waitGroup)

waitGroup.Wait()

// Clean up.
require.NoError(t, os.Remove(pluginTestConfigFile))
}

// Test_runCmdWithMultiTenancy tests the run command with multi-tenancy enabled.
Expand Down Expand Up @@ -183,9 +175,6 @@ func Test_runCmdWithMultiTenancy(t *testing.T) {
}(&waitGroup)

waitGroup.Wait()

// Clean up.
require.NoError(t, os.Remove(pluginTestConfigFile))
}

func Test_runCmdWithCachePlugin(t *testing.T) {
Expand Down Expand Up @@ -263,9 +252,4 @@ func Test_runCmdWithCachePlugin(t *testing.T) {
}(&waitGroup)

waitGroup.Wait()

// Clean up.
require.NoError(t, os.RemoveAll("plugins/"))
require.NoError(t, os.Remove(pluginTestConfigFile))
require.NoError(t, os.Remove(globalTestConfigFile))
}

0 comments on commit 42d6a9a

Please sign in to comment.