16
16
'use strict' ;
17
17
18
18
const { assert} = require ( 'chai' ) ;
19
+ const { delay} = require ( './util' ) ;
19
20
const { describe, it} = require ( 'mocha' ) ;
20
21
const { execSync} = require ( 'child_process' ) ;
21
22
@@ -62,7 +63,10 @@ describe('Tables PredictionAPI', () => {
62
63
} ) ;
63
64
64
65
it ( `should perform batch prediction using GCS as source and
65
- GCS as destination` , async ( ) => {
66
+ GCS as destination` , async function ( ) {
67
+ this . retries ( 5 ) ;
68
+ await delay ( this . test ) ;
69
+
66
70
// Run batch prediction using GCS as source and GCS as destination
67
71
const output = exec (
68
72
`node tables/predict-gcs-source-gcs-dest.v1beta1.js "${ projectId } " "${ region } " "${ modelId } " "${ gcsInputUri } " "${ gcsOutputUriPrefix } "`
@@ -71,7 +75,10 @@ describe('Tables PredictionAPI', () => {
71
75
} ) ;
72
76
73
77
it . skip ( `should perform batch prediction using BQ as source and
74
- GCS as destination` , async ( ) => {
78
+ GCS as destination` , async function ( ) {
79
+ this . retries ( 5 ) ;
80
+ await delay ( this . test ) ;
81
+
75
82
// Run batch prediction using BQ as source and GCS as destination
76
83
const output = exec (
77
84
`node tables/predict-gcs-source-bq-dest.v1beta1.js predict-using-bq-source-and-gcs-dest "${ modelId } "` +
@@ -81,7 +88,10 @@ describe('Tables PredictionAPI', () => {
81
88
} ) ;
82
89
83
90
it ( `should perform batch prediction using GCS as source and
84
- BQ as destination` , async ( ) => {
91
+ BQ as destination` , async function ( ) {
92
+ this . retries ( 5 ) ;
93
+ await delay ( this . test ) ;
94
+
85
95
// Run batch prediction using GCS as source and BQ as destination
86
96
const output = exec (
87
97
`node tables/predict-gcs-source-bq-dest.v1beta1.js "${ projectId } " "${ region } " "${ modelId } " ` +
@@ -91,7 +101,10 @@ describe('Tables PredictionAPI', () => {
91
101
} ) ;
92
102
93
103
it ( `should perform batch prediction using BQ as source and
94
- BQ as destination` , async ( ) => {
104
+ BQ as destination` , async function ( ) {
105
+ this . retries ( 5 ) ;
106
+ await delay ( this . test ) ;
107
+
95
108
// Run batch prediction using BQ as source and BQ as destination
96
109
const output = exec (
97
110
`node tables/predict-bq-source-bq-dest.v1beta1.js "${ projectId } " "${ region } " "${ modelId } "` +
0 commit comments