Skip to content

Commit

Permalink
trying to fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
TiganeteaRobert committed Aug 29, 2022
1 parent c6ffdad commit 420d2ca
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkg/target/kinesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ package target

import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/kinesis"
"strings"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -37,7 +41,12 @@ func TestKinesisTarget_KinesisConnectionFailure(t *testing.T) {

assert := assert.New(t)

client := testutil.GetAWSLocalstackKinesisClient()
client := kinesis.New(session.Must(session.NewSession(&aws.Config{
Credentials: credentials.NewStaticCredentials("foo", "var", ""),
S3ForcePathStyle: aws.Bool(true),
Region: aws.String(`wrong-region`),
Endpoint: aws.String(`wrong-endpoint`),
})))

target, err := newKinesisTargetWithInterfaces(client, "00000000000", testutil.AWSLocalstackRegion, "not-exists")
assert.NotNil(err)
Expand Down

0 comments on commit 420d2ca

Please sign in to comment.