File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,14 +144,12 @@ func TestFirewall_Create(t *testing.T) {
144144 entity := firewall .Entities [0 ]
145145 assert .Equal (t , 189031 , entity .ID )
146146 assert .Equal (t , linodego .FirewallDeviceLinodeInterface , entity .Type )
147- assert .Nil (t , entity .Label )
147+ assert .Empty (t , entity .Label )
148148 assert .Equal (t , "/v4/linode/instances/92759172/interfaces/189031" , entity .URL )
149149 assert .NotNil (t , entity .ParentEntity )
150150 assert .Equal (t , 92759172 , entity .ParentEntity .ID )
151151 assert .Equal (t , linodego .FirewallDeviceLinode , entity .ParentEntity .Type )
152- if assert .NotNil (t , entity .ParentEntity .Label ) {
153- assert .Equal (t , "test-01" , * entity .ParentEntity .Label )
154- }
152+ assert .Equal (t , "test-01" , entity .ParentEntity .Label )
155153 assert .Equal (t , "/v4/linode/instances/92759172" , entity .ParentEntity .URL )
156154 assert .Nil (t , entity .ParentEntity .ParentEntity )
157155}
You can’t perform that action at this time.
0 commit comments