From 52f9031184d547d4beb32abda511f7d4f98588ff Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Tue, 4 Jan 2022 07:49:52 -0500 Subject: go.mod: update cloud.google.com/go imports to latest versions Change-Id: I44ac70e194eb6731c6886b7616954cb7d77b9a44 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/375274 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Jamal Carvalho --- internal/queue/queue_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/queue/queue_test.go') diff --git a/internal/queue/queue_test.go b/internal/queue/queue_test.go index 80a50676..159a1742 100644 --- a/internal/queue/queue_test.go +++ b/internal/queue/queue_test.go @@ -7,11 +7,11 @@ package queue import ( "testing" - "github.com/golang/protobuf/ptypes" "github.com/google/go-cmp/cmp" "golang.org/x/pkgsite/internal/config" taskspb "google.golang.org/genproto/googleapis/cloud/tasks/v2" "google.golang.org/protobuf/proto" + "google.golang.org/protobuf/types/known/durationpb" ) func TestNewTaskID(t *testing.T) { @@ -41,7 +41,7 @@ func TestNewTaskRequest(t *testing.T) { want := &taskspb.CreateTaskRequest{ Parent: "projects/Project/locations/us-central1/queues/queueID", Task: &taskspb.Task{ - DispatchDeadline: ptypes.DurationProto(maxCloudTasksTimeout), + DispatchDeadline: durationpb.New(maxCloudTasksTimeout), MessageType: &taskspb.Task_HttpRequest{ HttpRequest: &taskspb.HttpRequest{ HttpMethod: taskspb.HttpMethod_POST, -- cgit v1.3-5-g9baa