multi: run all test instances in parallel

This commit is contained in:
Olaoluwa Osuntokun committed 2017-06-17 01:00:07 +02:00
1 parent bb9bc9205a
commit 1be4d67ce4
30 files changed
+195 -1

No files matched your search

+4
View File
@@ -162,6 +162,8 @@ func generateTests(t *testing.T) []deriveTest {
// TestDeriveIndex check the correctness of index derive function by testing
// the index corner cases.
func TestDeriveIndex(t *testing.T) {
t.Parallel()
for _, test := range generateTests(t) {
pos, err := test.from.deriveBitTransformations(test.to)
if err != nil {
@@ -218,6 +220,8 @@ var deriveElementTests = []struct {
// TestSpecificationDeriveElement is used to check the consistency with
// specification hash derivation function.
func TestSpecificationDeriveElement(t *testing.T) {
t.Parallel()
for _, test := range deriveElementTests {
// Generate seed element.
element, err := newElementFromStr(test.seed, rootIndex)