mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
lint: add missing prealloc to backend lookup test (#7510)
This commit is contained in:
@@ -213,8 +213,9 @@ func TestCNAMEHostIsNameAndIpIgnored(t *testing.T) {
|
||||
|
||||
func TestCNAMEChainLimitAndLoop(t *testing.T) {
|
||||
// Construct internal CNAME chain longer than maxCnameChainLength and ensure truncation of chain
|
||||
var names []string
|
||||
for i := range maxCnameChainLength + 2 {
|
||||
chainLength := maxCnameChainLength + 2
|
||||
names := make([]string, 0, chainLength)
|
||||
for i := range chainLength {
|
||||
names = append(names, fmt.Sprintf("c%d.example.org.", i))
|
||||
}
|
||||
chain := map[string]string{}
|
||||
|
||||
Reference in New Issue
Block a user