chore(bigquery): relax BI Engine Statistics test
Test had an expectation on BI Engine statistics presence, however
test environments don't have BI resources provisioned.  Relax the
test.
Fixes:
@@ -2016,11 +2016,8 @@ func TestIntegration_QueryStatistics(t *testing.T) {
t.Error("expected query timeline, none present")
}
- if qStats.BIEngineStatistics == nil {
- t.Error("expected BIEngine statistics, none present")
- }
-
- expectedMode := true
+ if qStats.BIEngineStatistics != nil {
+ expectedMode := false
for _, m := range []string{"FULL", "PARTIAL", "DISABLED"} {
if qStats.BIEngineStatistics.BIEngineMode == m {
expectedMode = true
@@ -2030,6 +2027,7 @@ func TestIntegration_QueryStatistics(t *testing.T) {
t.Errorf("unexpected BIEngineMode for BI Engine statistics, got %s", qStats.BIEngineStatistics.BIEngineMode)
}
}
+}
func TestIntegration_Load(t *testing.T) {
if client == nil {
