Skip to content

Commit

Permalink
Fix unit tests to succeed on macOS Catalina. (#796)
Browse files Browse the repository at this point in the history
Catalina made parts of the OS read-only, so writing to stderr/out will now return a read-only error as opposed to Linux.
  • Loading branch information
shirchen committed Mar 5, 2020
1 parent 2c14fe6 commit cc6067d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func TestOpen(t *testing.T) {
"open /baz/quux: no such file or directory",
},
},
{[]string{"file:///stderr"}, []string{"open /stderr: permission denied"}},
{[]string{"file:///stdout"}, []string{"open /stdout: permission denied"}},
{[]string{"file:///stderr"}, []string{"open /stderr:"}},
{[]string{"file:///stdout"}, []string{"open /stdout:"}},
{[]string{"file://host01.test.com" + tempName}, []string{"empty or use localhost"}},
{[]string{"file://rms@localhost" + tempName}, []string{"user and password not allowed"}},
{[]string{"file://localhost" + tempName + "#foo"}, []string{"fragments not allowed"}},
Expand Down

0 comments on commit cc6067d

Please sign in to comment.