Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 15, 2024
1 parent ac28cbd commit 070e5c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ jobs:
fi
if: matrix.operating-system == 'ubuntu-latest'

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: matrix.operating-system == 'macos-latest'

- name: Run unit tests
run: mage test:unit

Expand Down
5 changes: 5 additions & 0 deletions pkg/plugin/manager_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ package plugin_test
import (
"archive/zip"
"context"
"fmt"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"testing"
"time"

v1 "github.com/google/go-containerregistry/pkg/v1"
"github.com/sosedoff/gitkit" // Not work on Windows
Expand Down Expand Up @@ -41,6 +43,9 @@ func TestManager_Install(t *testing.T) {
require.NoError(t, err)
defer ts.Close()

fmt.Println(ts.URL)
time.Sleep(10 * time.Minute)

wantPlugin := plugin.Plugin{
Name: "test_plugin",
Repository: "github.com/aquasecurity/trivy-plugin-test",
Expand Down

0 comments on commit 070e5c9

Please sign in to comment.