diff options
| author | Paul Buetow <paul@buetow.org> | 2023-06-13 00:45:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-06-13 00:45:56 +0300 |
| commit | a04fa17d3719e5435c35a599cf566630a08108a8 (patch) | |
| tree | c408326acd9a1855874e949dff1da5d12e9f5ef4 /internal/vote | |
| parent | fad6312fc02c71a42c3b28af0946e0833916d37f (diff) | |
use race detector for the tests and also run tests in parallel
Diffstat (limited to 'internal/vote')
| -rw-r--r-- | internal/vote/vote_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/vote/vote_test.go b/internal/vote/vote_test.go index a2a851b..cccb1be 100644 --- a/internal/vote/vote_test.go +++ b/internal/vote/vote_test.go @@ -7,6 +7,7 @@ import ( ) func TestVote(t *testing.T) { + t.Parallel() v, _ := New([]string{"foo", "bar", "baz", "bay"}) hostname, _ := os.Hostname() @@ -28,6 +29,7 @@ func TestVote(t *testing.T) { } func TestVoteExpiry(t *testing.T) { + t.Parallel() v, _ := New([]string{"foo", "bar", "baz", "bay"}) // Set expiry 1h into the future @@ -44,6 +46,7 @@ func TestVoteExpiry(t *testing.T) { } func TestMarshalling(t *testing.T) { + t.Parallel() v, _ := New([]string{"foo", "bar", "baz", "bay"}) jsonStr, err := v.ToJSON() if err != nil { |
