diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-04 20:06:00 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-04 20:07:32 +0200 |
| commit | 9846445c8e6e35393c6bf8e27a3ac83f70368e63 (patch) | |
| tree | c94cf0b97e8179c55398186db756122d282f1514 /prog/hints_test.go | |
| parent | 2c7e14a847318974490ab59460f0834ea2ee0d24 (diff) | |
prog: parallelize tests
Parallelize more tests and reduce number of iterations
in random tests under race detector.
Diffstat (limited to 'prog/hints_test.go')
| -rw-r--r-- | prog/hints_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/prog/hints_test.go b/prog/hints_test.go index 58519a6ff..e861b45bd 100644 --- a/prog/hints_test.go +++ b/prog/hints_test.go @@ -55,6 +55,7 @@ func TestHintsCheckConstArg(t *testing.T) { } for _, test := range tests { t.Run(fmt.Sprintf("%v", test.name), func(t *testing.T) { + t.Parallel() res := uint64Set{} constArg := &ConstArg{ArgCommon{nil}, test.in} checkConstArg(constArg, test.comps, func() { @@ -187,6 +188,7 @@ func TestHintsCheckDataArg(t *testing.T) { } for _, test := range tests { t.Run(fmt.Sprintf("%v", test.name), func(t *testing.T) { + t.Parallel() res := make(map[string]bool) // Whatever type here. It's just needed to pass the // dataArg.Type().Dir() == DirIn check. @@ -363,6 +365,7 @@ func TestHintsShrinkExpand(t *testing.T) { } for _, test := range tests { t.Run(fmt.Sprintf("%v", test.name), func(t *testing.T) { + t.Parallel() res := shrinkExpand(test.in, test.comps) if !reflect.DeepEqual(res, test.res) { t.Fatalf("\ngot : %v\nwant: %v", res, test.res) |
