Skip to content

Commit

Permalink
Add Parallel()
Browse files Browse the repository at this point in the history
Signed-off-by: Kenta Kozuka <[email protected]>
  • Loading branch information
kentakozuka committed Nov 1, 2023
1 parent 67f7372 commit 0c36131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/model/notificationevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
)

func TestGroup(t *testing.T) {
t.Parallel()
tests := []struct {
name string
typ NotificationEventType
Expand Down Expand Up @@ -54,7 +55,9 @@ func TestGroup(t *testing.T) {
}

for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
e := NotificationEvent{Type: tt.typ}
got := e.Group()
assert.Equal(t, tt.want, got)
Expand Down

0 comments on commit 0c36131

Please sign in to comment.