Skip to content

Commit cee34f9

Browse files
committed
fix: update bigquery test emulator version and timeout for SDK v1.74.0
The BigQuery SDK upgrade (v1.59.1 → v1.74.0) requires a newer emulator and more time to respond. Upgraded emulator from 0.3 to 0.6 and increased test timeout from 1s to 30s.
1 parent 64dbc14 commit cee34f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/extractors/bigquery/bigquery_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestMain(m *testing.M) {
4242
// setup test
4343
opts := dockertest.RunOptions{
4444
Repository: "ghcr.io/goccy/bigquery-emulator",
45-
Tag: "0.3",
45+
Tag: "0.6",
4646
Env: []string{},
4747
Mounts: []string{
4848
fmt.Sprintf("%s/testdata:/work/testdata", pwd),
@@ -155,7 +155,7 @@ func TestInit(t *testing.T) {
155155
func TestExtract(t *testing.T) {
156156
runTest := func(t *testing.T, cfg plugins.Config, randomizer func(seed int64) func(int64) int64) []*v1beta2.Asset {
157157
extr := bigquery.New(utils.Logger, mockClient, randomizer)
158-
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
158+
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
159159
defer cancel()
160160
err := extr.Init(ctx, cfg)
161161

0 commit comments

Comments
 (0)