This commit is contained in:
asoseil 2017-11-23 13:45:49 +01:00
parent fef9032fe4
commit c3e3b986ae

View File

@ -5,20 +5,13 @@ import (
"github.com/go-siris/siris/core/errors"
"github.com/tockins/realize/realize"
"log"
"os"
"strings"
"testing"
)
var mockResponse interface{}
type mockRealize struct {
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
}
type mockRealize realize.Realize
func (m *mockRealize) add() error {
if mockResponse != nil {
@ -145,4 +138,4 @@ func TestRealize_version(t *testing.T) {
if !strings.Contains(buf.String(), realize.RVersion) {
t.Error("Version expted", realize.RVersion)
}
}
}