Extend presubmit to covert test and request (#1846)

Fix the casing *and* fix use of context as we were still referencing
the non-std lib context - no wondering how this could have worked...
This commit is contained in:
Miek Gieben
2018-06-01 15:12:49 +01:00
committed by GitHub
parent 0df5eb98fe
commit 4f0b36e57e
15 changed files with 20 additions and 20 deletions

View File

@@ -36,7 +36,7 @@ func testExternalPluginCompile(t *testing.T) {
}
if !strings.Contains(string(out), "dns.example") {
t.Fatal("dns.example plugin should be there")
t.Fatal("Plugin dns.example should be there")
}
}
@@ -44,7 +44,7 @@ func run(t *testing.T, c *exec.Cmd) ([]byte, error) {
c.Dir = ".."
out, err := c.Output()
if err != nil {
return nil, fmt.Errorf("run: failed to run %s %s: %q", c.Args[0], c.Args[1], err)
return nil, fmt.Errorf("Run: failed to run %s %s: %q", c.Args[0], c.Args[1], err)
}
return out, nil