logs hidden
This commit is contained in:
parent
338c285af3
commit
7ea4b80c53
14
cmd_test.go
14
cmd_test.go
@ -3,11 +3,23 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"gopkg.in/urfave/cli.v2"
|
"gopkg.in/urfave/cli.v2"
|
||||||
|
"log"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type logT struct{}
|
||||||
|
|
||||||
|
func (logT) Write(bytes []byte) (int, error) {
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestMain(m *testing.M) {
|
||||||
|
log.SetFlags(0)
|
||||||
|
log.SetOutput(logT{})
|
||||||
|
}
|
||||||
|
|
||||||
func TestBlueprint_Clean(t *testing.T) {
|
func TestBlueprint_Clean(t *testing.T) {
|
||||||
r := realize{}
|
r := realize{}
|
||||||
r.Schema = append(r.Schema, Project{Name: "test0"})
|
r.Schema = append(r.Schema, Project{Name: "test0"})
|
||||||
@ -127,5 +139,5 @@ func TestBlueprint_Run(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
go r.run(params)
|
go r.run(params)
|
||||||
time.Sleep(1 * time.Millisecond)
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user