hack city

This commit is contained in:
Ethan Buchman 2018-03-13 15:43:36 +01:00
parent 39c8e4eb7f
commit b44690563a
1 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package tests
import (
"bufio"
"bytes"
"fmt"
"os"
"os/exec"
@ -63,7 +64,8 @@ func TestInitBasecoin(t *testing.T) {
t.Error(err)
}
initBasecoind.Stdout = os.Stdout
buf := new(bytes.Buffer)
initBasecoind.Stdout = buf
if err := initBasecoind.Start(); err != nil {
t.Error(err)
@ -78,6 +80,13 @@ func TestInitBasecoin(t *testing.T) {
if err := makeKeys(); err != nil {
t.Error(err)
}
fmt.Println("-----------------")
theOutput := strings.Split(buf.String(), "\n")
for i, o := range theOutput {
fmt.Println(i, o)
}
fmt.Println("-----------------")
}
func makeKeys() error {