Skip to content

Commit 553f4e2

Browse files
committed
use inbuilt helpers
1 parent b42a09a commit 553f4e2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

teams_rules_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ func TestTeamsRules(t *testing.T) {
108108

109109
createdAt, _ := time.Parse(time.RFC3339, "2014-01-01T05:20:00.12345Z")
110110
updatedAt, _ := time.Parse(time.RFC3339, "2014-01-01T05:20:00.12345Z")
111-
dnsPort := 5053
112-
trueBool := true
113111

114112
want := []TeamsRule{{
115113
ID: "7559a944-3dd7-41bf-b183-360a814a8c36",
@@ -144,14 +142,14 @@ func TestTeamsRules(t *testing.T) {
144142
{
145143
TeamsDnsResolverAddress{
146144
IP: "10.0.0.2",
147-
Port: &dnsPort,
145+
Port: IntPtr(5053),
148146
},
149147
},
150148
{
151149
TeamsDnsResolverAddress{
152150
IP: "192.168.0.2",
153151
VnetID: "16fd7a32-11f0-4687-a0bb-7031d241e184",
154-
RouteThroughPrivateNetwork: &trueBool,
152+
RouteThroughPrivateNetwork: BoolPtr(true),
155153
},
156154
},
157155
},
@@ -194,7 +192,7 @@ func TestTeamsRules(t *testing.T) {
194192
UntrustedCertSettings: &UntrustedCertSettings{
195193
Action: UntrustedCertPassthrough,
196194
},
197-
ResolveDnsThroughCloudflare: &trueBool,
195+
ResolveDnsThroughCloudflare: BoolPtr(true),
198196
},
199197
CreatedAt: &createdAt,
200198
UpdatedAt: &updatedAt,

0 commit comments

Comments
 (0)