Skip to content

Commit

Permalink
fix: open DevNull as readwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Aug 16, 2023
1 parent e9f3af8 commit 97ffa8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/sharness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jobs:
run:
shell: bash
steps:
# - name: Setup tmate session
# uses: pl-strflt/action-tmate@master
# with:
# check-num-clients: true
# limit-access-to-actor: false # true requires registered public SSH key(s)
# wait: false
# wait-in-post: true
# wait-interval: '600000' # 10 minutes
- name: Setup Go
uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/runmain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestRunMain(t *testing.T) {
}

// close outputs so go testing doesn't print anything
null, _ := os.Open(os.DevNull)
null, _ := os.OpenFile(os.DevNull, os.O_RDWR, 0755)
os.Stderr = null
os.Stdout = null
}

0 comments on commit 97ffa8e

Please sign in to comment.