Skip to content

Commit

Permalink
fix: fix windows test case
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Dec 4, 2024
1 parent 2dbd2c1 commit 67662ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/client/issues_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ func TestKpmIssue226(t *testing.T) {
func TestKclIssue1768(t *testing.T) {
testPath := "github.com/kcl-lang/kcl/issues/1768"
test_push_with_tag := func(t *testing.T, kpmcli *KpmClient) {

if runtime.GOOS == "windows" {
t.Skip("Skipping test on Windows")
}
err := mock.StartDockerRegistry()
if err != nil {
t.Errorf("Error starting docker registry: %v", err)
Expand Down
4 changes: 4 additions & 0 deletions pkg/client/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package client
import (
"bytes"
"path/filepath"
"runtime"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -14,6 +15,9 @@ import (

func TestPush(t *testing.T) {
testFunc := func(t *testing.T, kpmcli *KpmClient) {
if runtime.GOOS == "windows" {
t.Skip("Skipping test on Windows")
}
err := mock.StartDockerRegistry()
if err != nil {
t.Errorf("Error starting docker registry: %v", err)
Expand Down

0 comments on commit 67662ac

Please sign in to comment.