mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
Run tests in parallel (#478)
Create a small speedup running the tests: PASS ok github.com/miekg/coredns/test 10.329s PASS ok github.com/miekg/coredns/test 6.079s Skip the etcd ones. Doing the middleware/*/*_test ones doesn't yield any speedup as these are still done on a per directory basis.
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func TestAuto(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpdir, err := ioutil.TempDir(os.TempDir(), "coredns")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -81,6 +82,7 @@ func TestAuto(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAutoNonExistentZone(t *testing.T) {
|
||||
t.Parallel()
|
||||
tmpdir, err := ioutil.TempDir(os.TempDir(), "coredns")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -119,6 +121,7 @@ func TestAutoNonExistentZone(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAutoAXFR(t *testing.T) {
|
||||
t.Parallel()
|
||||
log.SetOutput(ioutil.Discard)
|
||||
|
||||
tmpdir, err := ioutil.TempDir(os.TempDir(), "coredns")
|
||||
|
||||
Reference in New Issue
Block a user