Skip to content

Commit

Permalink
Try to fix the race issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Jan 27, 2024
1 parent 42d6a9a commit b47923a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ func Test_runCmdWithCachePlugin(t *testing.T) {
// Test plugin install command.
output, err := executeCommandC(
rootCmd, "plugin", "install",
"github.com/gatewayd-io/gatewayd-plugin-cache@latest",
"-p", pluginTestConfigFile, "--update")
"-p", pluginTestConfigFile, "--update",
"github.com/gatewayd-io/gatewayd-plugin-cache@latest")
require.NoError(t, err, "plugin install should not return an error")
assert.Contains(t, output, "Installing plugin from CLI argument")
assert.Contains(t, output, "Downloading ")
Expand Down Expand Up @@ -235,7 +235,7 @@ func Test_runCmdWithCachePlugin(t *testing.T) {

waitGroup.Add(1)
go func(waitGroup *sync.WaitGroup) {
time.Sleep(waitBeforeStop)
time.Sleep(waitBeforeStop * 2)

StopGracefully(
context.Background(),
Expand Down

0 comments on commit b47923a

Please sign in to comment.