videointelligence/video_analyze: use parallel subtests
@@ -42,8 +42,11 @@ func TestAnalyze(t *testing.T) {
}
for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ t.Parallel()
+
if tt.gcs == nil {
- continue
+ t.Fatal("gcs not set")
}
var buf bytes.Buffer
@@ -54,5 +57,6 @@ func TestAnalyze(t *testing.T) {
if got := buf.String(); !strings.Contains(got, tt.wantContain) {
t.Errorf("GCS %s(%q): got %q, want to contain %q", tt.name, tt.path, got, tt.wantContain)
}
+ })
}
}
