fixed
This commit is contained in:
parent
fef9032fe4
commit
c3e3b986ae
|
@ -5,20 +5,13 @@ import (
|
||||||
"github.com/go-siris/siris/core/errors"
|
"github.com/go-siris/siris/core/errors"
|
||||||
"github.com/tockins/realize/realize"
|
"github.com/tockins/realize/realize"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mockResponse interface{}
|
var mockResponse interface{}
|
||||||
|
|
||||||
type mockRealize struct {
|
type mockRealize realize.Realize
|
||||||
Settings realize.Settings `yaml:"settings" json:"settings"`
|
|
||||||
Server realize.Server `yaml:"server" json:"server"`
|
|
||||||
realize.Schema `yaml:",inline"`
|
|
||||||
sync chan string
|
|
||||||
exit chan os.Signal
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *mockRealize) add() error {
|
func (m *mockRealize) add() error {
|
||||||
if mockResponse != nil {
|
if mockResponse != nil {
|
||||||
|
@ -145,4 +138,4 @@ func TestRealize_version(t *testing.T) {
|
||||||
if !strings.Contains(buf.String(), realize.RVersion) {
|
if !strings.Contains(buf.String(), realize.RVersion) {
|
||||||
t.Error("Version expted", realize.RVersion)
|
t.Error("Version expted", realize.RVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue