Skip to content

Commit

Permalink
remove unneeded call to Context
Browse files Browse the repository at this point in the history
  • Loading branch information
mccall114 committed Oct 30, 2019
1 parent 6030a83 commit fbfcea0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions google/resource_task_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"

"golang.org/x/net/context"
)

func TestAccTaskQueue_basic(t *testing.T) {
Expand Down Expand Up @@ -139,7 +137,7 @@ func testAccTaskQueueDestroy(s *terraform.State) error {

expectedName := fmt.Sprintf("projects/%s/locations/%s/queues/%s", config.Project, attributes["location"], attributes["name"])

_, err := config.clientCloudTasks.Projects.Locations.Queues.Get(expectedName).Context(context.Background()).Do()
_, err := config.clientCloudTasks.Projects.Locations.Queues.Get(expectedName).Do()
if err == nil {
return fmt.Errorf("Task Queue still exists")
}
Expand Down

0 comments on commit fbfcea0

Please sign in to comment.