diff --git a/google/serviceusage_operation.go b/google/serviceusage_operation.go index 88eb9a473a6..0e0199bbcf0 100644 --- a/google/serviceusage_operation.go +++ b/google/serviceusage_operation.go @@ -15,7 +15,13 @@ func (w *ServiceUsageOperationWaiter) QueryOp() (interface{}, error) { if w == nil { return nil, fmt.Errorf("Cannot query operation, it's unset or nil.") } - return w.Service.Operations.Get(w.Op.Name).Do() + + var op *serviceusage.Operation + err := retryTimeDuration(func() (opErr error) { + op, opErr = w.Service.Operations.Get(w.Op.Name).Do() + return opErr + }, DefaultRequestTimeout) + return op, err } func serviceUsageOperationWait(config *Config, op *serviceusage.Operation, activity string) error {