registry/auth/token: TestAudienceList_Unmarshal: t.Parallel()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-04-30 15:09:41 +02:00
parent 5e67a40e08
commit 9266220c2a
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -6,6 +6,7 @@ import (
) )
func TestAudienceList_Unmarshal(t *testing.T) { func TestAudienceList_Unmarshal(t *testing.T) {
t.Parallel()
t.Run("OK", func(t *testing.T) { t.Run("OK", func(t *testing.T) {
tests := []struct { tests := []struct {
value string value string
@ -28,6 +29,7 @@ func TestAudienceList_Unmarshal(t *testing.T) {
for _, tc := range tests { for _, tc := range tests {
tc := tc tc := tc
t.Run("", func(t *testing.T) { t.Run("", func(t *testing.T) {
t.Parallel()
var actual AudienceList var actual AudienceList
err := json.Unmarshal([]byte(tc.value), &actual) err := json.Unmarshal([]byte(tc.value), &actual)
@ -41,6 +43,7 @@ func TestAudienceList_Unmarshal(t *testing.T) {
}) })
t.Run("Error", func(t *testing.T) { t.Run("Error", func(t *testing.T) {
t.Parallel()
var actual AudienceList var actual AudienceList
err := json.Unmarshal([]byte("1234"), &actual) err := json.Unmarshal([]byte("1234"), &actual)