Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Jul 10, 2024
1 parent b2c7815 commit f2f3c09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions acceptance/tests/consul-dns/consul_dns_partitions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ func TestConsulDNS_WithPartitionsAndCatalogSync(t *testing.T) {
// to get the primary partition's version of the service since it is now exported
verifyDNS(t, releaseName, true, staticServerNamespace, secondaryClusterContext, primaryClusterContext,
podLabelSelector, serviceRequestInDefaultPartition, true, dnsUtilsPodIndex)
dnsUtilsPodIndex++

})
}
}
10 changes: 5 additions & 5 deletions acceptance/tests/consul-dns/consul_dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ func TestConsulDNS(t *testing.T) {
k8sClient := ctx.KubernetesClient(t)
contextNamespace := ctx.KubectlOptions(t).Namespace

consulServerList, err := k8sClient.CoreV1().Pods(contextNamespace).List(context.Background(), metav1.ListOptions{
_, err := k8sClient.CoreV1().Pods(contextNamespace).List(context.Background(), metav1.ListOptions{
LabelSelector: "app=consul,component=server",
})
require.NoError(t, err)

serverIPs := make([]string, len(consulServerList.Items))
for _, serverPod := range consulServerList.Items {
serverIPs = append(serverIPs, serverPod.Status.PodIP)
}
//serverIPs := make([]string, len(consulServerList.Items))
//for _, serverPod := range consulServerList.Items {
// serverIPs = append(serverIPs, serverPod.Status.PodIP)
//}

verifyDNS(t, releaseName, c.enableDNSProxy, contextNamespace, ctx, ctx, "app=consul,component=server",
"consul.service.consul", true, 0)
Expand Down

0 comments on commit f2f3c09

Please sign in to comment.