Skip to content

Commit

Permalink
remove further trump quotes
Browse files Browse the repository at this point in the history
[#141764475]

Signed-off-by: Giuseppe Capizzi <[email protected]>
  • Loading branch information
Rosie Bloxsom authored and gcapizzi committed Mar 21, 2017
1 parent 09557b4 commit 00165bc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions artifact/directory_artifact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ instances:
})

It("writer writes contents to the file", func() {
writer.Write([]byte("they are taking our jobs"))
Expect(ioutil.ReadFile(artifactName + "/redis-0.tgz")).To(Equal([]byte("they are taking our jobs")))
writer.Write([]byte("lalala a file"))
Expect(ioutil.ReadFile(artifactName + "/redis-0.tgz")).To(Equal([]byte("lalala a file")))
})

It("does not fail", func() {
Expand All @@ -321,8 +321,8 @@ instances:
})

It("writer writes contents to the file", func() {
writer.Write([]byte("they are taking our jobs"))
Expect(ioutil.ReadFile(artifactName + "/my-backup-artifact.tgz")).To(Equal([]byte("they are taking our jobs")))
writer.Write([]byte("lalala a file"))
Expect(ioutil.ReadFile(artifactName + "/my-backup-artifact.tgz")).To(Equal([]byte("lalala a file")))
})

It("does not fail", func() {
Expand Down
5 changes: 3 additions & 2 deletions bosh/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/pivotal-cf/bosh-backup-and-restore/orchestrator"
"github.com/pivotal-cf/bosh-backup-and-restore/ssh"
"github.com/pivotal-cf/bosh-backup-and-restore/ssh/fakes"
"errors"
)

var _ = Describe("Director", func() {
Expand Down Expand Up @@ -688,7 +689,7 @@ var _ = Describe("Director", func() {
})
Context("fails", func() {
Context("to find deployment", func() {
var findDeploymentError = fmt.Errorf("what do you have to loose?")
var findDeploymentError = errors.New("no deployment here")
BeforeEach(func() {
boshDirector.FindDeploymentReturns(nil, findDeploymentError)
})
Expand All @@ -697,7 +698,7 @@ var _ = Describe("Director", func() {
})
})
Context("to download manifest", func() {
var downloadManifestError = fmt.Errorf("you will be tired of winning")
var downloadManifestError = errors.New("I refuse to download this manifest")
BeforeEach(func() {
boshDirector.FindDeploymentReturns(boshDeployment, nil)
boshDeployment.ManifestReturns("", downloadManifestError)
Expand Down
7 changes: 4 additions & 3 deletions bosh/deployed_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/bosh-backup-and-restore/bosh"
"github.com/pivotal-cf/bosh-backup-and-restore/ssh/fakes"
"github.com/pivotal-cf/bosh-backup-and-restore/instance"
"github.com/pivotal-cf/bosh-backup-and-restore/orchestrator"
"github.com/pivotal-cf/bosh-backup-and-restore/ssh/fakes"
"errors"
)

var _ = Describe("Instance", func() {
Expand Down Expand Up @@ -300,7 +301,7 @@ var _ = Describe("Instance", func() {
Context("when there are several scripts and one of them fails to run pre backup lock while another one causes an error", func() {
expectedStdout := "some stdout"
expectedStderr := "some stderr"
expectedError := fmt.Errorf("you are fake news")
expectedError := errors.New("Errororororor")

BeforeEach(func() {
backupAndRestoreScripts = []instance.Script{
Expand Down Expand Up @@ -886,7 +887,7 @@ var _ = Describe("Instance", func() {

Describe("error while running cleaning up the connection", func() {
BeforeEach(func() {
expectedError = fmt.Errorf("werk niet")
expectedError = errors.New("werk niet")
boshDeployment.CleanUpSSHReturns(expectedError)
})
It("fails", func() {
Expand Down
2 changes: 1 addition & 1 deletion instance/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var _ = Describe("blob", func() {
var expectedErr error

BeforeEach(func() {
expectedErr = fmt.Errorf("you fool")
expectedErr = fmt.Errorf("nope")
sshConnection.RunReturns([]byte("don't matter"), []byte("don't matter"), 0, expectedErr)
})

Expand Down

0 comments on commit 00165bc

Please sign in to comment.