Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Feb 21, 2023
1 parent 0edabe5 commit 12a92a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions executor/loadremotetest/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ go_test(
"one_sqldump_test.go",
"util_test.go",
],
embedsrcs = ["test.parquet"],
flaky = True,
deps = [
"//executor",
Expand Down
8 changes: 4 additions & 4 deletions executor/loadremotetest/one_parquet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
package loadremotetest

import (
_ "embed"
"fmt"
"os"

"github.com/fsouza/fake-gcs-server/fakestorage"
"github.com/pingcap/tidb/testkit"
)

func (s *mockGCSSuite) TestLoadParquet() {
content, err := os.ReadFile("test.parquet")
s.Require().NoError(err)
//go:embed test.parquet
var content []byte

func (s *mockGCSSuite) TestLoadParquet() {
s.tk.MustExec("DROP DATABASE IF EXISTS load_csv;")
s.tk.MustExec("CREATE DATABASE load_csv;")
s.tk.MustExec("CREATE TABLE load_csv.t (" +
Expand Down

0 comments on commit 12a92a7

Please sign in to comment.