Skip to content

Commit e3633b0

Browse files
committed
Add test
1 parent 0f9a46d commit e3633b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

replication/event_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,10 @@ func TestIntVarEvent(t *testing.T) {
140140
require.Equal(t, INSERT_ID, ev.Type)
141141
require.Equal(t, uint64(23), ev.Value)
142142
}
143+
144+
func TestPreviousGTIDEvent(t *testing.T) {
145+
data := []byte{1, 0, 0, 0, 0, 0, 0, 1}
146+
ev := PreviousGTIDsEvent{}
147+
err := ev.Decode(data)
148+
require.NoError(t, err)
149+
}

0 commit comments

Comments
 (0)