Skip to content

Commit 4374e30

Browse files
committed
revert meanless change
1 parent 82c9ba0 commit 4374e30

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/nodejs/integration/override_test.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/cloudfoundry/switchblade"
88
"github.com/sclevine/spec"
99

10+
. "github.com/cloudfoundry/switchblade/matchers"
1011
. "github.com/onsi/gomega"
1112
)
1213

@@ -37,15 +38,13 @@ func testOverride(platform switchblade.Platform, fixtures string) func(*testing.
3738
).
3839
Execute(name, filepath.Join(fixtures, "simple"))
3940
Expect(err).To(HaveOccurred())
40-
Expect(err).To(MatchError(ContainSubstring("App staging failed")))
41-
42-
// Switchblade now automatically captures staging logs in CF API v3
43-
// by fetching them using 'cf logs --recent' when staging fails
44-
logsStr := logs.String()
45-
Expect(logsStr).To(ContainSubstring("-----> OverrideYML Buildpack"))
46-
Expect(logsStr).To(ContainSubstring("-----> Installing node"))
47-
Expect(logsStr).To(MatchRegexp(`Copy .*/node.tgz`))
48-
Expect(logsStr).To(ContainSubstring("Unable to install node: dependency sha256 mismatch: expected sha256 062d906c87839d03b243e2821e10653c89b4c92878bfe2bf995dec231e117bfc, actual sha256 b56b58ac21f9f42d032e1e4b8bf8b8823e69af5411caa15aee2b140bc756962f"))
41+
42+
Expect(logs.String()).To(SatisfyAll(
43+
ContainLines(ContainSubstring("-----> OverrideYML Buildpack")),
44+
ContainLines(ContainSubstring("-----> Installing node")),
45+
ContainLines(MatchRegexp("Copy .*/node.tgz")),
46+
ContainLines(ContainSubstring("Unable to install node: dependency sha256 mismatch: expected sha256 062d906c87839d03b243e2821e10653c89b4c92878bfe2bf995dec231e117bfc, actual sha256 b56b58ac21f9f42d032e1e4b8bf8b8823e69af5411caa15aee2b140bc756962f")),
47+
))
4948
})
5049
}
5150
}

0 commit comments

Comments
 (0)