Skip to content

Commit

Permalink
fix: make test case running in order to test the log output
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Apr 29, 2024
1 parent 108ecaf commit c706ab7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,13 @@ func TestLoadOciUrlDiffSetting(t *testing.T) {
assert.Equal(t, err, nil)
}

func TestAddWithOciDownloader(t *testing.T) {
func TestOciDownloader(t *testing.T) {
// make test case running in order to test the log output
testRunWithOciDownloader(t)
testAddWithOciDownloader(t)
}

func testAddWithOciDownloader(t *testing.T) {
kpmCli, err := NewKpmClient()
path := getTestDir("test_oci_downloader")
assert.Equal(t, err, nil)
Expand Down Expand Up @@ -1473,7 +1479,7 @@ func TestAddWithOciDownloader(t *testing.T) {
assert.Equal(t, utils.RmNewline(string(expectmodContent)), utils.RmNewline(string(gotContent)))
}

func TestRunWithOciDownloader(t *testing.T) {
func testRunWithOciDownloader(t *testing.T) {
kpmCli, err := NewKpmClient()
path := getTestDir("test_oci_downloader")
assert.Equal(t, err, nil)
Expand Down

0 comments on commit c706ab7

Please sign in to comment.