Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 20, 2024
1 parent 0f9a46d commit e3633b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions replication/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,10 @@ func TestIntVarEvent(t *testing.T) {
require.Equal(t, INSERT_ID, ev.Type)
require.Equal(t, uint64(23), ev.Value)
}

func TestPreviousGTIDEvent(t *testing.T) {
data := []byte{1, 0, 0, 0, 0, 0, 0, 1}
ev := PreviousGTIDsEvent{}
err := ev.Decode(data)
require.NoError(t, err)
}

0 comments on commit e3633b0

Please sign in to comment.