X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6b21fcf78372995c6d8130c63f2f8aa2609bf7fe..522d7fd117285e4e4ce3ea5ec9b5a1722521b681:/terminal_client_helper_test.go?ds=inline diff --git a/terminal_client_helper_test.go b/terminal_client_helper_test.go index 077d90c..0fdd93b 100644 --- a/terminal_client_helper_test.go +++ b/terminal_client_helper_test.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "io" "net" "strings" @@ -44,7 +45,7 @@ func (c *TerminalTestClient) WaitFor(t *testing.T, text string) { func (c *TerminalTestClient) Close() error { err := c.input.Close() if err != nil { - return err + return fmt.Errorf("close terminal input: %w", err) } return <-c.done