From dbdc470c5c43862e47205e426cc4658150bc0440 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Mon, 14 May 2012 22:51:01 +0100 Subject: [PATCH] Fix os.EINVAL -> os.ErrInvalid change. --- client/mocknetconn_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/mocknetconn_test.go b/client/mocknetconn_test.go index 2306153..76835f9 100644 --- a/client/mocknetconn_test.go +++ b/client/mocknetconn_test.go @@ -99,7 +99,7 @@ func (m *mockNetConn) ExpectNothing() { // Implement net.Conn interface func (m *mockNetConn) Read(b []byte) (int, error) { if m.closed { - return 0, os.EINVAL + return 0, os.ErrInvalid } l := 0 select { @@ -114,7 +114,7 @@ func (m *mockNetConn) Read(b []byte) (int, error) { func (m *mockNetConn) Write(s []byte) (int, error) { if m.closed { - return 0, os.EINVAL + return 0, os.ErrInvalid } b := make([]byte, len(s)) copy(b, s) @@ -124,7 +124,7 @@ func (m *mockNetConn) Write(s []byte) (int, error) { func (m *mockNetConn) Close() error { if m.closed { - return os.EINVAL + return os.ErrInvalid } // Shut down *ALL* the goroutines! // This will trigger an EOF event in Read() too