jobs/v4: fix TestHistogramSearch
@@ -24,7 +24,6 @@ import (
)
func TestHistogramSearch(t *testing.T) {
- t.Skip("https://github.com/GoogleCloudPlatform/golang-samples/issues/822")
tc := testutil.SystemTest(t)
companyID := strings.SplitAfter(testCompany.Name, "companies/")[1]
testutil.Retry(t, 10, 1*time.Second, func(r *testutil.R) {
@@ -32,7 +31,7 @@ func TestHistogramSearch(t *testing.T) {
if err := histogramSearch(buf, tc.ProjectID, companyID); err != nil {
r.Errorf("histogramSearch: %v", err)
}
- want := testJob.Name
+ want := strings.SplitAfter(testJob.Name, "jobs/")[1]
if got := buf.String(); !strings.Contains(got, want) {
r.Errorf("histogramSearch got %q, want to contain %q", got, want)
}
