Skip to content

Commit

Permalink
Fix use of t.Parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Nov 4, 2023
1 parent bfb06b2 commit f1c88ae
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions expr/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
)

func TestComponentEvalName(t *testing.T) {
t.Parallel()
tests := []struct {
name, want string
}{
Expand All @@ -30,7 +29,6 @@ func TestComponentEvalName(t *testing.T) {
}

func TestComponentFinalize(t *testing.T) {
t.Parallel()
component := Component{
Element: &Element{
Name: "foo",
Expand Down
4 changes: 0 additions & 4 deletions expr/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
)

func TestContainerEvalName(t *testing.T) {
t.Parallel()
tests := []struct {
name, want string
}{
Expand All @@ -30,7 +29,6 @@ func TestContainerEvalName(t *testing.T) {
}

func TestContainerFinalize(t *testing.T) {
t.Parallel()
container := Container{
Element: &Element{
Name: "foo",
Expand Down Expand Up @@ -71,7 +69,6 @@ func TestContainersElements(t *testing.T) {
}

func TestContainerComponent(t *testing.T) {
t.Parallel()
container := Container{
Components: Components{
{Element: &Element{Name: "foo"}},
Expand All @@ -98,7 +95,6 @@ func TestContainerComponent(t *testing.T) {
}

func TestAddComponent(t *testing.T) {
t.Parallel()
mElementFoo := Element{ID: "1", Name: "foo", Description: ""}
mElementBar := Element{ID: "2", Name: "bar", Description: ""}
componentFoo := Component{
Expand Down
3 changes: 1 addition & 2 deletions expr/person_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
)

func TestPersonEvalName(t *testing.T) {
t.Parallel()
tests := []struct {
name, want string
}{
Expand All @@ -30,7 +29,6 @@ func TestPersonEvalName(t *testing.T) {
}

func TestPersonFinalize(t *testing.T) {
t.Parallel()
person := Person{
Element: &Element{
Name: "foo",
Expand All @@ -47,6 +45,7 @@ func TestPersonFinalize(t *testing.T) {
for i, tt := range tests {
tt := tt
t.Run(fmt.Sprint(i), func(t *testing.T) {
t.Parallel()
if tt.pre != nil {
tt.pre()
}
Expand Down

0 comments on commit f1c88ae

Please sign in to comment.