Skip to content

Commit

Permalink
Fix invalid getter in test/bridge.go
Browse files Browse the repository at this point in the history
The Temporary() function of netError
in /test/bridge.go returns timeout, not temporary.
  • Loading branch information
stv0g committed Nov 16, 2022
1 parent 9f2193c commit 611de07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.txt
Expand Up @@ -16,6 +16,7 @@ OrlandoCo <luisorlando.co@gmail.com>
Sean DuBois <duboisea@twitch.tv>
Sean DuBois <seaduboi@amazon.com>
Sean DuBois <sean@siobud.com>
Steffen Vogel <post@steffenvogel.de>
Winlin <winlin@vip.126.com>
Woodrow Douglass <wdouglass@carnegierobotics.com>
Yutaka Takeda <yt0916@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion test/bridge.go
Expand Up @@ -59,7 +59,7 @@ func (e *netError) Timeout() bool {
}

func (e *netError) Temporary() bool {
return e.timeout
return e.temporary
}

// Read reads data, block until the data becomes available.
Expand Down

0 comments on commit 611de07

Please sign in to comment.