mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-08 14:15:30 +08:00
TESTING: Fix broken test
This commit is contained in:
parent
d7601b4fe8
commit
80c81b990a
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ func TestParsedFiles(t *testing.T) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
t.Run(f.Name(), func(t *testing.T) {
|
t.Run(f.Name(), func(t *testing.T) {
|
||||||
conf, err := ExecuteJavascript(string(filepath.Join(testDir, f.Name())), true)
|
conf, err := ExecuteJavascript(string(filepath.Join(testDir, f.Name())), true, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ func TestErrors(t *testing.T) {
|
||||||
}
|
}
|
||||||
for _, tst := range tests {
|
for _, tst := range tests {
|
||||||
t.Run(tst.desc, func(t *testing.T) {
|
t.Run(tst.desc, func(t *testing.T) {
|
||||||
if _, err := ExecuteJavascript(tst.text, true); err == nil {
|
if _, err := ExecuteJavascript(tst.text, true, nil); err == nil {
|
||||||
t.Fatal("Expected error but found none")
|
t.Fatal("Expected error but found none")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue