Skip to content

Commit

Permalink
Adding parallel to more tests. (#1602)
Browse files Browse the repository at this point in the history
Simple cleanup, found some unit tests that could run in parallel but
weren't.

Co-authored-by: Alexander Apalikov <alexander.apalikov@globant.com>
  • Loading branch information
markmandel and aLekSer authored Jun 2, 2020
1 parent 1d21e03 commit 9f776bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/gameserversets/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const (
)

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

cases := []struct {
desc string
list []*agonesv1.GameServer
Expand Down Expand Up @@ -330,6 +332,8 @@ func TestComputeStatus(t *testing.T) {
}

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

gsSet := defaultFixture()

c, m := newFakeController()
Expand Down Expand Up @@ -416,6 +420,8 @@ func TestControllerWatchGameServers(t *testing.T) {
}

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

t.Run("adding and deleting unhealthy gameservers", func(t *testing.T) {
gsSet := defaultFixture()
list := createGameServers(gsSet, 5)
Expand Down Expand Up @@ -488,6 +494,8 @@ func TestSyncGameServerSet(t *testing.T) {
}

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

gsSet := defaultFixture()

gs1 := gsSet.GameServer()
Expand Down Expand Up @@ -527,6 +535,8 @@ func TestControllerSyncUnhealthyGameServers(t *testing.T) {
}

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

gsSet := defaultFixture()

c, m := newFakeController()
Expand Down

0 comments on commit 9f776bc

Please sign in to comment.