@@ -48,10 +48,10 @@ func TestECSContainerInstanceEventMarshaling(t *testing.T) {
48
48
assert .Equal (t , 3767 , detail .RegisteredResources [1 ].IntegerValue )
49
49
assert .Equal (t , "PORTS" , detail .RegisteredResources [2 ].Name )
50
50
assert .Equal (t , "STRINGSET" , detail .RegisteredResources [2 ].Type )
51
- assert .Equal (t , []* string {ptr ( "22" ), ptr ( "2376" ), ptr ( "2375" ), ptr ( "51678" ), ptr ( "51679" ) }, detail .RegisteredResources [2 ].StringSetValue )
51
+ assert .Equal (t , []string {"22" , "2376" , "2375" , "51678" , "51679" }, detail .RegisteredResources [2 ].StringSetValue )
52
52
assert .Equal (t , "PORTS_UDP" , detail .RegisteredResources [3 ].Name )
53
53
assert .Equal (t , "STRINGSET" , detail .RegisteredResources [3 ].Type )
54
- assert .Equal (t , []* string {}, detail .RegisteredResources [3 ].StringSetValue )
54
+ assert .Equal (t , []string {}, detail .RegisteredResources [3 ].StringSetValue )
55
55
assert .Equal (t , "CPU" , detail .RemainingResources [0 ].Name )
56
56
assert .Equal (t , "INTEGER" , detail .RemainingResources [0 ].Type )
57
57
assert .Equal (t , 1988 , detail .RemainingResources [0 ].IntegerValue )
@@ -60,10 +60,10 @@ func TestECSContainerInstanceEventMarshaling(t *testing.T) {
60
60
assert .Equal (t , 767 , detail .RemainingResources [1 ].IntegerValue )
61
61
assert .Equal (t , "PORTS" , detail .RemainingResources [2 ].Name )
62
62
assert .Equal (t , "STRINGSET" , detail .RemainingResources [2 ].Type )
63
- assert .Equal (t , []* string {ptr ( "22" ), ptr ( "2376" ), ptr ( "2375" ), ptr ( "51678" ), ptr ( "51679" ) }, detail .RemainingResources [2 ].StringSetValue )
63
+ assert .Equal (t , []string {"22" , "2376" , "2375" , "51678" , "51679" }, detail .RemainingResources [2 ].StringSetValue )
64
64
assert .Equal (t , "PORTS_UDP" , detail .RemainingResources [3 ].Name )
65
65
assert .Equal (t , "STRINGSET" , detail .RemainingResources [3 ].Type )
66
- assert .Equal (t , []* string {}, detail .RemainingResources [3 ].StringSetValue )
66
+ assert .Equal (t , []string {}, detail .RemainingResources [3 ].StringSetValue )
67
67
assert .Equal (t , "ACTIVE" , detail .Status )
68
68
assert .Equal (t , 14801 , detail .Version )
69
69
assert .Equal (t , "aebcbca" , detail .VersionInfo .AgentHash )
@@ -85,10 +85,6 @@ func TestECSContainerInstanceEventMarshaling(t *testing.T) {
85
85
assert .JSONEq (t , string (inputJSON ), string (outputJSON ))
86
86
}
87
87
88
- func ptr (s string ) * string {
89
- return & s
90
- }
91
-
92
88
func TestECSContainerInstanceMarshalingMalformedJson (t * testing.T ) {
93
89
test .TestMalformedJson (t , ECSContainerInstanceEvent {})
94
90
}
0 commit comments