X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/087d725b5ab41ad34ffd24938482d45a8b99a080..d9fddc0f506eb4ead7049f5638674b2b8773fcaa:/terminal_client_helper_test.go?ds=sidebyside 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