Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Aug 15, 2024
1 parent 173171e commit aa77f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion artifactory/services/buildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (bis *BuildInfoService) PublishBuildInfo(build *buildinfo.BuildInfo, projec
if bis.IsDryRun() {
log.Info("[Dry run] Logging Build info preview...")
log.Output(clientutils.IndentJson(content))
return summary, err
return summary, nil
}
httpClientsDetails := bis.GetArtifactoryDetails().CreateHttpClientDetails()
utils.SetContentType("application/vnd.org.jfrog.artifactory+json", &httpClientsDetails.Headers)
Expand Down
7 changes: 2 additions & 5 deletions tests/artifactoryctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package tests

import (
"context"
"errors"
"testing"
"time"

Expand Down Expand Up @@ -40,8 +39,6 @@ func testCtxTimeout(t *testing.T) {
assert.NoError(t, err)
time.Sleep(time.Millisecond * 300)
_, err = sm.GetVersion()
assert.Error(t, err)
if !errors.Is(err, context.DeadlineExceeded) {
t.Fail()
}
// Expect timeout error
assert.ErrorContains(t, err, context.DeadlineExceeded.Error())
}

0 comments on commit aa77f53

Please sign in to comment.