Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalb4doc committed Dec 24, 2024
1 parent b2f2cd1 commit d021068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions artifactory/utils/commandsummary/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package commandsummary

import (
"os"
"testing"

testsutils "github.com/jfrog/jfrog-client-go/utils/tests"
"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -103,8 +103,8 @@ func TestAddGitHubTrackingToUrl(t *testing.T) {
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
// Set up the environment variable
os.Setenv("GITHUB_WORKFLOW", test.envValue)
defer os.Unsetenv("GITHUB_WORKFLOW")
cleanup := testsutils.SetEnvWithCallbackAndAssert(t, "GITHUB_WORKFLOW", test.envValue)
defer cleanup()

// Call the function
result, err := addGitHubTrackingToUrl(test.url, test.section)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
πŸ“¦ libs-release
└── πŸ“ path
└── πŸ“ to
└── <a href='https://myplatform.com/ui/repos/tree/General/libs-release/path/to/artifact2?clearFilter=true' target="_blank">artifact2</a>
└── <a href='https://myplatform.com/ui/repos/tree/General/libs-release/path/to/artifact2?clearFilter=true&gh_job_id=JFrog+CLI+Core+Tests&gh_section=packages' target="_blank">artifact2</a>

</details></pre>

Expand Down

0 comments on commit d021068

Please sign in to comment.