Skip to content

Commit c0182f4

Browse files
authored
Merge pull request #588 from merico-dev/unit-test-improvement
test: improve the naming of the directory used for unit testing
2 parents 5ca0acb + 00eeb65 commit c0182f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pkg/pluginmanager/downloader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestDownload(t *testing.T) {
1212
os.Remove(filepath.Join(".", "argocdapp_0.0.1-rc1.so"))
1313

1414
c := NewDownloadClient()
15-
err := c.download(".", "argocdapp_0.0.1-rc1.so", "0.0.1-rc1")
15+
err := c.download(".", "argocdapp_0.0.1-rc1.so", "0.0.1-ut-do-not-delete")
1616
if err != nil {
1717
t.Fatal("downloaded error")
1818
}
@@ -22,7 +22,7 @@ func TestDownload(t *testing.T) {
2222

2323
func TestDownloadNotFound(t *testing.T) {
2424
c := NewDownloadClient()
25-
err := c.download(".", "doesntexist", "0.0.1")
25+
err := c.download(".", "doesntexist", "0.0.1-ut-do-not-delete")
2626
// Since the right granted to public users on aws does not include listing bucket
2727
// AWS returns 403 instead of 404 when acquiring an object where bucket does not exist: there is no list right.
2828
assert.Contains(t, err.Error(), "403")

0 commit comments

Comments
 (0)