Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
The minishift tests should wait only for 2 namespaces (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek authored and dipak-pawar committed May 29, 2019
1 parent 97b0525 commit 550df6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions controller/tenant_minishift_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *TenantControllerMinishiftTestSuite) TestSetupUpdateCleanAndDeleteTenant
if err != nil {
return err
}
if len(namespaces) != 5 {
if len(namespaces) != 2 {
return fmt.Errorf("not all namespaces created. created only: %+v", namespaces)
}
return nil
Expand All @@ -67,7 +67,7 @@ func (s *TenantControllerMinishiftTestSuite) TestSetupUpdateCleanAndDeleteTenant
// then
namespaces, err := repo.GetNamespaces()
assert.NoError(t, err)
assert.Len(t, namespaces, 5)
assert.Len(t, namespaces, 2)
s.VerifyObjectsPresence(t, tnnt.NsBaseName, "2abcd", false)
})

Expand Down Expand Up @@ -101,7 +101,7 @@ func (s *TenantControllerMinishiftTestSuite) TestSetupUpdateCleanAndDeleteTenant
// then
namespaces, err := repo.GetNamespaces()
assert.NoError(t, err)
assert.Len(t, namespaces, 5)
assert.Len(t, namespaces, 2)
})

s.T().Run("remove namespaces and tenant", func(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions update/update_minishift_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (s *AutomatedUpdateMinishiftTestSuite) TestAutomaticUpdateOfTenantNamespace
if err != nil {
return err
}
if len(namespaces) != 5 {
if len(namespaces) != 2 {
return fmt.Errorf("not all namespaces created. created only: %+v", namespaces)
}
return nil
Expand Down Expand Up @@ -115,7 +115,7 @@ func (s *AutomatedUpdateMinishiftTestSuite) verifyAreUpdated(tenantIDs []uuid.UU
assert.NoError(t, err)
namespaces, err := repo.GetNamespaces()
assert.NoError(t, err)
assert.Len(t, namespaces, 5)
assert.Len(t, namespaces, 2)
for _, ns := range namespaces {
assert.True(t, wasBefore.Before(ns.UpdatedAt))
assert.Contains(t, ns.Version, "2abcd")
Expand Down

0 comments on commit 550df6c

Please sign in to comment.