From 7e0e7ba3aa1ab0b4e3d7d841483bf44c83ad6727 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 14 Jan 2022 18:54:02 +0800 Subject: [PATCH] Fixed test Signed-off-by: Kevin Su --- go/tasks/plugins/webapi/bigquery/integration_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/go/tasks/plugins/webapi/bigquery/integration_test.go b/go/tasks/plugins/webapi/bigquery/integration_test.go index 18d287446..bec6f3c2f 100644 --- a/go/tasks/plugins/webapi/bigquery/integration_test.go +++ b/go/tasks/plugins/webapi/bigquery/integration_test.go @@ -75,7 +75,11 @@ func newFakeBigQueryServer() *httptest.Server { if strings.HasPrefix(request.URL.Path, "/projects/flyte/jobs/") && request.Method == "GET" { writer.WriteHeader(200) - job := bigquery.Job{Status: &bigquery.JobStatus{State: "DONE"}} + job := bigquery.Job{Status: &bigquery.JobStatus{State: "DONE"}, + Configuration: &bigquery.JobConfiguration{ + Query: &bigquery.JobConfigurationQuery{ + DestinationTable: &bigquery.TableReference{ + ProjectId: "project", DatasetId: "dataset", TableId: "table"}}}} bytes, _ := json.Marshal(job) _, _ = writer.Write(bytes) return