Skip to content

Commit

Permalink
Adding parallel to more tests. (googleforgames#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
2 people authored and ilkercelikyilmaz committed Oct 23, 2020
1 parent 521ad00 commit 959f932
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 959f932

Please sign in to comment.