mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-26 10:38:40 +08:00
cleanups
This commit is contained in:
parent
1452bbc4d6
commit
c87451ccda
2 changed files with 2 additions and 3 deletions
|
|
@ -248,7 +248,7 @@ func TestFixPosition(t *testing.T) {
|
|||
{
|
||||
name: "random string",
|
||||
pos: "alsdjfsljd",
|
||||
want: "[line:alsdjfsljd]",
|
||||
want: "[alsdjfsljd]",
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ func TestSetRecordNames(t *testing.T) {
|
|||
NameRaw: "bücher.com",
|
||||
NameUnicode: "bücher.com",
|
||||
}
|
||||
_ = dcIDN
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
|
@ -344,7 +343,7 @@ func TestSetRecordNames(t *testing.T) {
|
|||
gotErr := setRecordNames(tt.rec, tt.dc, tt.n)
|
||||
if (gotErr != nil && (!tt.expectedErr)) || (gotErr == nil && tt.expectedErr) {
|
||||
t.Errorf("Error: got \"%v\", want %v", gotErr, tt.expectedErr)
|
||||
} else if gotErr != nil {
|
||||
} else if gotErr != nil && tt.expectedErr {
|
||||
// Expected error, test passed.
|
||||
} else {
|
||||
if tt.rec.NameRaw != tt.expectedRec.NameRaw {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue