Skip to content

Commit

Permalink
Made tests parallel
Browse files Browse the repository at this point in the history
These tests raced against each other due to the i18n initialization
in the service. Now that has been moved to main, so there is no race
anymore.
  • Loading branch information
EduardGomezEscandell committed Mar 30, 2023
1 parent 7c9b1cb commit c87c1e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsl-pro-service/cmd/wsl-pro-service/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func TestRunSignal(t *testing.T) {
}

func TestRun(t *testing.T) {
t.Parallel()

tests := map[string]struct {
runError bool
usageErrorReturn bool
Expand All @@ -78,6 +80,8 @@ func TestRun(t *testing.T) {
for name, tc := range tests {
tc := tc
t.Run(name, func(t *testing.T) {
t.Parallel()

a := myApp{
done: make(chan struct{}),
runError: tc.runError,
Expand Down

0 comments on commit c87c1e4

Please sign in to comment.