Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Dec 20, 2024
1 parent cb1a081 commit 8a3fa02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-dgraph-core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# sleep
sleep 5
- name: Upload Test Results
if: !cancelled() # Upload the results even if the tests fail
if: always() # Upload the results even if the tests fail
continue-on-error: true # don't fail this job if the upload fails
uses: trunk-io/analytics-uploader@main
with:
Expand Down
4 changes: 3 additions & 1 deletion t/t.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ func mergeXMLFiles(outputFile string, files []string) error {
// Extract the <testsuite> element from the file and append it
parts := strings.SplitN(string(content), testSuiteStr, 2)
if len(parts) > 1 {
finalFile.WriteString(testSuiteStr + parts[1])
if _, err := finalFile.WriteString(testSuiteStr + parts[1]); err != nil {
return fmt.Errorf(fileWriteErrorMsg, err)
}
}
}

Expand Down

0 comments on commit 8a3fa02

Please sign in to comment.