File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,15 @@ package http
3
3
import (
4
4
"context"
5
5
"testing"
6
- smithy "github.com/aws/smithy-go"
6
+
7
+ "github.com/aws/smithy-go"
7
8
"github.com/aws/smithy-go/auth"
8
9
)
9
10
10
11
func TestIdentity (t * testing.T ) {
11
- var expected auth.Identity = & auth.AnonymousIdentity {}
12
-
13
12
resolver := auth.AnonymousIdentityResolver {}
14
- actual , _ := resolver .GetIdentity (context .TODO (), smithy.Properties {})
15
- if expected != actual {
16
- t .Errorf ("Anonymous identity resolver does not produce correct identity" )
13
+ identity , _ := resolver .GetIdentity (context .TODO (), smithy.Properties {})
14
+ if _ , ok := identity .( * auth. AnonymousIdentity ); ! ok {
15
+ t .Errorf ("Anonymous identity resolver does not produce correct identity, expected it to be of type auth.AnonymousIdentity " )
17
16
}
18
17
}
You can’t perform that action at this time.
0 commit comments