Skip to content

Commit 2674ab6

Browse files
committed
Adjust error message for mysql on cflinuxfs4
1 parent 7d67d72 commit 2674ab6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/python/brats/brats_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ var _ = Describe("Python buildpack", func() {
4242
)
4343
})
4444
By("supports mysql by raising a no connection error", func() {
45-
Expect(app.GetBody("/mysql")).To(ContainSubstring("Can't connect to local MySQL server through socket"))
45+
Expect(app.GetBody("/mysql")).To(
46+
Or(
47+
// cflinuxfs3 and cflinuxfs4 have different messages for the same error.
48+
ContainSubstring("Can't connect to local MySQL server through socket"),
49+
ContainSubstring("Can't connect to local server through socket"),
50+
),
51+
)
4652
})
4753
By("supports loading and running the hiredis lib", func() {
4854
Expect(app.GetBody("/redis")).To(ContainSubstring("Hello"))

0 commit comments

Comments
 (0)