Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 16, 2024
1 parent 5f4a2bf commit 1beef0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/app/components/extendable_executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"testing"

"github.com/gameap/daemon/internal/app/components"
"github.com/gameap/daemon/internal/app/components/customhandlers"
"github.com/gameap/daemon/internal/app/config"
"github.com/gameap/daemon/internal/app/contracts"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -22,6 +24,9 @@ func TestExtendableExecutor_ExecGetTool_ExpectToolDownloaded(t *testing.T) {
}
}(tmpDir)
executor := components.NewDefaultExtendableExecutor(components.NewCleanExecutor())
executor.RegisterHandler("get-tool", customhandlers.NewGetTool(&config.Config{
ToolsPath: tmpDir,
}).Handle)

result, code, err := executor.Exec(
context.Background(),
Expand Down

0 comments on commit 1beef0e

Please sign in to comment.