Skip to content

Commit

Permalink
Merge pull request #16 from redspread/deploy-test-fix
Browse files Browse the repository at this point in the history
Fixed Deployment tests to compile
  • Loading branch information
ethernetdan committed Feb 5, 2016
2 parents c45438b + 036b354 commit 6880c04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/deploy/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestDeploymentSimpleEquals1(t *testing.T) {
a, b := Deployment{}, Deployment{}
a, b := new(Deployment), new(Deployment)

assert.True(t, a.Equal(a), "self")
assert.True(t, b.Equal(b), "self")
Expand All @@ -25,7 +25,7 @@ func TestDeploymentSimpleEquals1(t *testing.T) {

func TestDeploymentSimpleEquals2(t *testing.T) {
a, b, c := createSecret("a", "1"), createSecret("b", "2"), createSecret("c", "3")
deployA, deployB := Deployment{}, Deployment{}
deployA, deployB := new(Deployment), new(Deployment)

deployA.Add(a)
deployA.Add(b)
Expand All @@ -49,7 +49,7 @@ func TestNoDuplicateNames(t *testing.T) {
secretA := createSecret("secret-a", "some data")
secretB := createSecret("secret-a", "different data")

deployment := Deployment{}
deployment := new(Deployment)
assert.NoError(t, deployment.Add(secretA), "valid add")
assert.Error(t, deployment.Add(secretA), "duplicate name")
assert.Error(t, deployment.Add(secretB), "duplicate name")
Expand Down Expand Up @@ -79,7 +79,7 @@ func TestDeploymentObjects(t *testing.T) {
},
}

deploy := Deployment{}
deploy := new(Deployment)
deploy.Add(secret1)
deploy.Add(secret2)
deploy.Add(&pod)
Expand Down

0 comments on commit 6880c04

Please sign in to comment.