Skip to content

Commit

Permalink
private/protocol: Fix benchmarks (#329)
Browse files Browse the repository at this point in the history
Fixes the restxml/restjson benchmarks.
  • Loading branch information
Yimu-Yang authored and jasdel committed Jun 25, 2019
1 parent 76aec52 commit 4f5e4b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions private/protocol/restjson/build_bench_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build bench

package restjson_test

import (
Expand All @@ -15,7 +13,7 @@ import (
)

var (
elastictranscoderSvc *elastictranscoder.ElasticTranscoder
elastictranscoderSvc *elastictranscoder.Client
)

func TestMain(m *testing.M) {
Expand Down Expand Up @@ -119,7 +117,7 @@ func elastictranscoderCreateJobInput() *elastictranscoder.CreateJobInput {
Resolution: aws.String("Resolution"),
},
PipelineId: aws.String("Id"), // Required
Output: &elastictranscoder.CreateJobOutput{
Output: &elastictranscoder.CreateJobOutputResult{
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []elastictranscoder.Artwork{
{ // Required
Expand Down Expand Up @@ -212,7 +210,7 @@ func elastictranscoderCreateJobInput() *elastictranscoder.CreateJobInput {
},
},
OutputKeyPrefix: aws.String("Key"),
Outputs: []elastictranscoder.CreateJobOutput{
Outputs: []elastictranscoder.CreateJobOutputResult{
{ // Required
AlbumArt: &elastictranscoder.JobAlbumArt{
Artwork: []elastictranscoder.Artwork{
Expand Down
6 changes: 2 additions & 4 deletions private/protocol/restxml/build_bench_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build bench

package restxml_test

import (
Expand All @@ -20,8 +18,8 @@ import (
)

var (
cloudfrontSvc *cloudfront.CloudFront
s3Svc *s3.S3
cloudfrontSvc *cloudfront.Client
s3Svc *s3.Client
)

func TestMain(m *testing.M) {
Expand Down

0 comments on commit 4f5e4b5

Please sign in to comment.