Skip to content

Commit

Permalink
fix: bump test case version to fix ci (#501)
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe authored Oct 16, 2024
1 parent 3875e75 commit fb05312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ func TestGetReleasesFromSource(t *testing.T) {
assert.True(t, length >= 5)
releasesVersions, err = sortVersions(releases)
assert.Equal(t, err, nil)
assert.Equal(t, releasesVersions[:5], []string{"1.14", "1.15", "1.16", "1.17", "1.18"})
assert.Equal(t, releasesVersions[:5], []string{"1.14", "1.14.1", "1.15", "1.15.1", "1.16"})
}

func testUpdateWithKclMod(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions pkg/mvs/mvs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func testUpgradeToLatest(t *testing.T) {

upgrade, err := reqs.Upgrade(module.Version{Path: "k8s", Version: "1.27"})
assert.Equal(t, err, nil)
assert.Equal(t, upgrade, module.Version{Path: "k8s", Version: "1.31.1"})
assert.Equal(t, upgrade, module.Version{Path: "k8s", Version: "1.31.2"})
}

func testUpgradeAllToLatest(t *testing.T) {
Expand Down Expand Up @@ -148,8 +148,8 @@ func testUpgradeAllToLatest(t *testing.T) {
{Path: "argo-cd-order", Version: "0.2.0"},
{Path: "helloworld", Version: "0.1.3"},
{Path: "json_merge_patch", Version: "0.1.1"},
{Path: "k8s", Version: "1.31.1"},
{Path: "podinfo", Version: "0.1.1"},
{Path: "k8s", Version: "1.31.2"},
{Path: "podinfo", Version: "0.2.1"},
}
assert.Equal(t, upgrade, expectedReqs)
}
Expand Down

0 comments on commit fb05312

Please sign in to comment.