From e329b24143fadd65df402c191c7c0f5b4265139c Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Mon, 24 Oct 2022 11:08:41 -0700 Subject: [PATCH] fix for test --- bigtable/admin.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bigtable/admin.go b/bigtable/admin.go index c6594146d11..920197d3198 100644 --- a/bigtable/admin.go +++ b/bigtable/admin.go @@ -349,10 +349,15 @@ func (ac *AdminClient) updateTableWithConf(ctx context.Context, conf *UpdateTabl } lro, err := ac.tClient.UpdateTable(ctx, req) if err != nil { - return err + return fmt.Errorf("error from update: %w", err) } - // ignore the response table proto by passing in nil - return longrunning.InternalNewOperation(ac.lroClient, lro).Wait(ctx, nil) + var tbl btapb.Table + op := longrunning.InternalNewOperation(ac.lroClient, lro) + err = op.Wait(ctx, &tbl) + if err != nil { + return fmt.Errorf("error from operation: %v", err) + } + return nil } // DeleteTable deletes a table and all of its data.