aboutsummaryrefslogtreecommitdiff
path: root/internal/queue/queue_test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2022-01-04 07:49:52 -0500
committerJonathan Amsterdam <jba@google.com>2022-01-04 18:13:17 +0000
commit52f9031184d547d4beb32abda511f7d4f98588ff (patch)
treecf149d1c08ba46f784ec519f364f1abb8b203c08 /internal/queue/queue_test.go
parentb9a85f067dcc1a1c10ee820390f66ba7d689efcd (diff)
downloadgo-x-pkgsite-52f9031184d547d4beb32abda511f7d4f98588ff.tar.xz
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 <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/queue/queue_test.go')
-rw-r--r--internal/queue/queue_test.go4
1 files changed, 2 insertions, 2 deletions
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,