X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6b21fcf78372995c6d8130c63f2f8aa2609bf7fe..b1be0ee8530df5db8973bfe355f2f6d3149383a0:/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