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
1 changed files with 3 additions and 0 deletions

View File

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