Skip to content

Commit

Permalink
Update java/akka/smoke_test/akka_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Mikusa <[email protected]>
  • Loading branch information
anthonydahanne and dmikusa committed Sep 22, 2023
1 parent 4ef72ab commit 613154c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion java/akka/smoke_test/akka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func testAkkaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {

err = docker.Image.Remove.Execute(image.ID)
if err != nil {
Expect(err.Error()).To(ContainSubstring("failed to remove docker image: exit status 1: Error"))
Expect(err).To(MatchError(ContainSubstring("failed to remove docker image: exit status 1: Error")))
} else {
Expect(err).ToNot(HaveOccurred())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func testApplicationInsightsWithBuilders(builder string) func(*testing.T, spec.G

err = docker.Image.Remove.Execute(image.ID)
if err != nil {
Expect(err).To(MatchError("failed to remove docker image: exit status 1: Error: No such image:"))
Expect(err).To(MatchError(ContainSubstring("failed to remove docker image: exit status 1: Error")))
} else {
Expect(err).ToNot(HaveOccurred())
}
Expand All @@ -91,7 +91,7 @@ func testApplicationInsightsWithBuilders(builder string) func(*testing.T, spec.G
context("app uses application insights", func() {
it("builds successfully", func() {
var err error
source, err = occam.Source(filepath.Join("../java", "application-insights"))
source, err = occam.Source(filepath.Join("../../java", "application-insights"))
Expect(err).NotTo(HaveOccurred())

var logs fmt.Stringer
Expand Down

0 comments on commit 613154c

Please sign in to comment.