Skip to content

Commit 4f5e4b5

Browse files
Yimu-Yangjasdel
authored andcommitted
private/protocol: Fix benchmarks (#329)
Fixes the restxml/restjson benchmarks.
1 parent 76aec52 commit 4f5e4b5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

private/protocol/restjson/build_bench_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build bench
2-
31
package restjson_test
42

53
import (
@@ -15,7 +13,7 @@ import (
1513
)
1614

1715
var (
18-
elastictranscoderSvc *elastictranscoder.ElasticTranscoder
16+
elastictranscoderSvc *elastictranscoder.Client
1917
)
2018

2119
func TestMain(m *testing.M) {
@@ -119,7 +117,7 @@ func elastictranscoderCreateJobInput() *elastictranscoder.CreateJobInput {
119117
Resolution: aws.String("Resolution"),
120118
},
121119
PipelineId: aws.String("Id"), // Required
122-
Output: &elastictranscoder.CreateJobOutput{
120+
Output: &elastictranscoder.CreateJobOutputResult{
123121
AlbumArt: &elastictranscoder.JobAlbumArt{
124122
Artwork: []elastictranscoder.Artwork{
125123
{ // Required
@@ -212,7 +210,7 @@ func elastictranscoderCreateJobInput() *elastictranscoder.CreateJobInput {
212210
},
213211
},
214212
OutputKeyPrefix: aws.String("Key"),
215-
Outputs: []elastictranscoder.CreateJobOutput{
213+
Outputs: []elastictranscoder.CreateJobOutputResult{
216214
{ // Required
217215
AlbumArt: &elastictranscoder.JobAlbumArt{
218216
Artwork: []elastictranscoder.Artwork{

private/protocol/restxml/build_bench_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build bench
2-
31
package restxml_test
42

53
import (
@@ -20,8 +18,8 @@ import (
2018
)
2119

2220
var (
23-
cloudfrontSvc *cloudfront.CloudFront
24-
s3Svc *s3.S3
21+
cloudfrontSvc *cloudfront.Client
22+
s3Svc *s3.Client
2523
)
2624

2725
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)