Skip to content

Commit

Permalink
Merge pull request #5935 from sioncojp/fix_deprecated_session_new
Browse files Browse the repository at this point in the history
Make use of NewSession() because Session() is deprecated
  • Loading branch information
bflad authored Sep 20, 2018
2 parents 792f6dd + 04e8d58 commit 95ae7c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aws/resource_aws_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ func TestFetchRootDevice(t *testing.T) {
},
}

conn := ec2.New(session.New(nil))
sess, err := session.NewSession(nil)
if err != nil {
t.Errorf("Error new session: %s", err)
}

conn := ec2.New(sess)

for _, tc := range cases {
t.Run(fmt.Sprintf(tc.label), func(t *testing.T) {
Expand Down

0 comments on commit 95ae7c5

Please sign in to comment.