From 97ffa8ed6d6fc9f751e77f61f231e634c5d34019 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 16 Aug 2023 08:13:27 +0200 Subject: [PATCH] fix: open DevNull as readwrite --- .github/workflows/sharness.yml | 8 -------- cmd/ipfs/runmain_test.go | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/sharness.yml b/.github/workflows/sharness.yml index 5a0598ae45ba..8bed2279376d 100644 --- a/.github/workflows/sharness.yml +++ b/.github/workflows/sharness.yml @@ -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: diff --git a/cmd/ipfs/runmain_test.go b/cmd/ipfs/runmain_test.go index d9187911207c..54db7c13058c 100644 --- a/cmd/ipfs/runmain_test.go +++ b/cmd/ipfs/runmain_test.go @@ -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 }