diff --git a/test/e2e/externalplugin/generate_test.go b/test/e2e/externalplugin/generate_test.go index 5f7a4c2d14e..0504d1b87ca 100644 --- a/test/e2e/externalplugin/generate_test.go +++ b/test/e2e/externalplugin/generate_test.go @@ -73,8 +73,7 @@ func GenerateProject(kbc *utils.TestContext) { initFileContainsExpr, err := pluginutil.HasFileContentWith( filepath.Join(kbc.Dir, "initFile.txt"), - `A simple text file created with the`+" `"+`init`+"`"+` subcommand -DOMAIN: sample.domain.com`) +"A simple text file created with the \`init\` subcommand\nDOMAIN: sample.domain.com") ExpectWithOffset(1, err).NotTo(HaveOccurred(), "Check initFile.txt should return no error.") ExpectWithOffset(1, initFileContainsExpr).To(BeTrue(), "The init file does not contain the expected expression.")