1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

TESTING: Fix broken test

This commit is contained in:
Tom Limoncelli
2020-10-30 12:04:41 -04:00
parent d7601b4fe8
commit 80c81b990a

View File

@ -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")
} }
}) })