Skip to content

Commit

Permalink
fix data race for parquet test
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Aug 23, 2021
1 parent 529fc03 commit 681b9ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion br/pkg/lightning/mydump/parquet_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import (
)

type testParquetParserSuite struct{}
type testParquetParserSerialSuite struct{}

var _ = Suite(testParquetParserSuite{})
var _ = SerialSuites(testParquetParserSerialSuite{})

func (s testParquetParserSuite) TestParquetParser(c *C) {
type Test struct {
Expand Down Expand Up @@ -81,7 +83,7 @@ func (s testParquetParserSuite) TestParquetParser(c *C) {
c.Assert(reader.ReadRow(), Equals, io.EOF)
}

func (s testParquetParserSuite) TestParquetVariousTypes(c *C) {
func (s testParquetParserSerialSuite) TestParquetVariousTypes(c *C) {
// those deprecated TIME/TIMESTAMP types depend on the local timezone!
prevTZ := time.Local
time.Local = time.FixedZone("UTC+8", 8*60*60)
Expand Down

0 comments on commit 681b9ce

Please sign in to comment.