Compare commits
No commits in common. "316df860296b468158d40a0111fe9cad72d60b6e" and "452ef5f1fa210d29ec8efe14f869ce87bfc52f3c" have entirely different histories.
316df86029
...
452ef5f1fa
2 changed files with 2 additions and 17 deletions
|
|
@ -1,15 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/marmaduke/testbed2/pkg/cli"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := cli.Run(os.Args[1:]); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
|
@ -48,13 +48,13 @@ func TestRunOutput(t *testing.T) {
|
|||
r, w, _ := os.Pipe()
|
||||
os.Stdout = w
|
||||
|
||||
_ = Run([]string{})
|
||||
Run([]string{})
|
||||
|
||||
w.Close()
|
||||
os.Stdout = oldStdout
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
_, _ = buf.ReadFrom(r)
|
||||
buf.ReadFrom(r)
|
||||
if buf.Len() == 0 {
|
||||
t.Fatal("expected output")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue