Skip to content

Commit

Permalink
Avro: Add test for JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Nov 26, 2021
1 parent e8f735d commit 7acb0b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cdc/sink/codec/avro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (s *avroBatchEncoderSuite) TestAvroEncodeOnly(c *check.C) {
{Name: "myfloat", Value: float64(3.14), Type: mysql.TypeFloat},
{Name: "mybytes", Value: []byte("Hello World"), Type: mysql.TypeBlob},
{Name: "ts", Value: time.Now().Format(types.TimeFSPFormat), Type: mysql.TypeTimestamp},
{Name: "myjson", Value: "{\"foo\": \"bar\"}", Type: mysql.TypeJSON},
}, time.Local)
c.Assert(err, check.IsNil)

Expand Down

0 comments on commit 7acb0b6

Please sign in to comment.