tests: parallelize state store tests

It has been decided we're going to live in a many core world.
Let's take advantage of that and parallelize these state store
tests which all run in memory and are largely CPU bound.

An unscientific benchmark demonstrating the improvement:

[mp state (master)] $ go test
PASS
ok  	github.com/hashicorp/nomad/nomad/state	5.162s

[mp state (f-parallelize-state-store-tests)] $ go test
PASS
ok  	github.com/hashicorp/nomad/nomad/state	1.527s
This commit is contained in:
Seth Hoenig 2019-12-11 09:33:10 -06:00
parent b25713a837
commit d45dec1ca8

File diff suppressed because it is too large Load diff