mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
TTL warnings should be more verbose (#2069)
This commit is contained in:
@ -2,7 +2,6 @@ package normalize
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v3/models"
|
||||
@ -355,16 +354,6 @@ func TestCheckDuplicates_dup_ns(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestUniq(t *testing.T) {
|
||||
a := []uint32{1, 2, 2, 3, 4, 5, 5, 6}
|
||||
expected := []uint32{1, 2, 3, 4, 5, 6}
|
||||
|
||||
r := uniq(a)
|
||||
if !reflect.DeepEqual(r, expected) {
|
||||
t.Error("Deduplicated slice is different than expected")
|
||||
}
|
||||
}
|
||||
|
||||
func TestCheckLabelHasMultipleTTLs(t *testing.T) {
|
||||
records := []*models.RecordConfig{
|
||||
// different ttl per record
|
||||
|
Reference in New Issue
Block a user