Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT committed Aug 21, 2019
1 parent d4756e0 commit 5a31b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func TestIsTemporaryNetworkErrorFalse(t *testing.T) {
func TestIsTemporaryNetworkErrorUnwrapping(t *testing.T) {
noe1 := &net.OpError{
Err: &os.SyscallError{
Err: syscall.WSAECONNRESET,
Err: syscall.ECONNRESET,
},
}
if !IsTemporaryNetworkError(noe1) {
t.Fatal("expected unwrapped error to be temporary")
}
noe2 := &net.OpError{
Err: &os.SyscallError{
Err: syscall.WSAEACCES,
Err: syscall.EACCES,
},
}
if IsTemporaryNetworkError(noe2) {
Expand Down

0 comments on commit 5a31b97

Please sign in to comment.