healthcare: more retries
@@ -44,13 +44,17 @@ func TestHL7V2Store(t *testing.T) {
})
}
+ testutil.Retry(t, 10, time.Second, func(r *testutil.R) {
if err := createDataset(ioutil.Discard, tc.ProjectID, location, datasetID); err != nil {
- t.Fatalf("Unable to create test dataset: %v", err)
+ r.Errorf("Unable to create test dataset: %v", err)
}
+ })
+ testutil.Retry(t, 10, time.Second, func(r *testutil.R) {
if err := createHL7V2Store(ioutil.Discard, tc.ProjectID, location, datasetID, hl7V2StoreID); err != nil {
- t.Fatalf("createHL7V2Store got err: %v", err)
+ r.Errorf("createHL7V2Store got err: %v", err)
}
+ })
testutil.Retry(t, 10, time.Second, func(r *testutil.R) {
hl7V2StoreName := fmt.Sprintf("projects/%s/locations/%s/datasets/%s/hl7V2Stores/%s", tc.ProjectID, location, datasetID, hl7V2StoreID)
