зеркало из https://github.com/github/vitess-gh.git
Fixing tests in here.
This commit is contained in:
Родитель
5af902d026
Коммит
a64f1a634f
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
"github.com/youtube/vitess/go/sync2"
|
||||
"github.com/youtube/vitess/go/testfiles"
|
||||
"github.com/youtube/vitess/go/vt/mysqlctl/proto"
|
||||
"github.com/youtube/vitess/go/vt/binlog/proto"
|
||||
)
|
||||
|
||||
func TestPosParse(t *testing.T) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/youtube/vitess/go/vt/mysqlctl/proto"
|
||||
"github.com/youtube/vitess/go/vt/binlog/proto"
|
||||
)
|
||||
|
||||
type eventErrorCase struct {
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/youtube/vitess/go/vt/binlog/proto"
|
||||
"github.com/youtube/vitess/go/vt/key"
|
||||
"github.com/youtube/vitess/go/vt/mysqlctl/proto"
|
||||
)
|
||||
|
||||
var testKeyRange = key.KeyRange{
|
||||
|
|
|
@ -112,7 +112,7 @@ func TestWarning(t *testing.T) {
|
|||
ioutil.ReadAll(out)
|
||||
mbl.Wait()
|
||||
logutil.Flush()
|
||||
warnbytes, err := ioutil.ReadFile(path.Join(os.TempDir(), "mysqlctl.test.WARNING"))
|
||||
warnbytes, err := ioutil.ReadFile(path.Join(os.TempDir(), "binlog.test.WARNING"))
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ func TestError(t *testing.T) {
|
|||
ioutil.ReadAll(out)
|
||||
mbl.Wait()
|
||||
logutil.Flush()
|
||||
warnbytes, err := ioutil.ReadFile(path.Join(os.TempDir(), "mysqlctl.test.ERROR"))
|
||||
warnbytes, err := ioutil.ReadFile(path.Join(os.TempDir(), "binlog.test.ERROR"))
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
|
|
@ -5,11 +5,9 @@
|
|||
package binlog
|
||||
|
||||
import (
|
||||
//"fmt"
|
||||
"testing"
|
||||
|
||||
// "github.com/youtube/vitess/go/vt/key"
|
||||
"github.com/youtube/vitess/go/vt/mysqlctl/proto"
|
||||
"github.com/youtube/vitess/go/vt/binlog/proto"
|
||||
)
|
||||
|
||||
var testTables = []string{
|
||||
|
|
Загрузка…
Ссылка в новой задаче