diff --git a/realize_test.go b/realize_test.go index e8c405d..9b092f4 100644 --- a/realize_test.go +++ b/realize_test.go @@ -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) } -} +} \ No newline at end of file