Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jan 14, 2022
1 parent 9cd7a97 commit 7e0e7ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/tasks/plugins/webapi/bigquery/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e0e7ba

Please sign in to comment.