This commit is contained in:
Shlomi Noach 2016-12-24 17:44:39 +02:00
parent fa399e0608
commit 7dfb740519

View File

@ -46,6 +46,7 @@ func TestContextLoadJSON(t *testing.T) {
err = context.LoadJSON(jsonString)
test.S(t).ExpectEqualsAny(err, nil, io.EOF)
test.S(t).ExpectEquals(context.AppliedBinlogCoordinates, mysql.BinlogCoordinates{LogFile: "mysql-bin.012345", LogPos: 6789})
abstractValues := context.MigrationRangeMinValues.AbstractValues()
test.S(t).ExpectEquals(len(abstractValues), 2)
test.S(t).ExpectEquals(abstractValues[0], 31)