Skip to content

Commit

Permalink
Use \n instead of a whitespace in a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiwei-Ding committed Dec 23, 2021
1 parent 6139c2e commit 88e16b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer_test.go
Expand Up @@ -361,7 +361,7 @@ var _ = Describe("Analyzer", func() {

nosecPackage := testutils.NewTestPackage()
defer nosecPackage.Close()
nosecSource := strings.Replace(source, "h := md5.New()", "//#nosec //G301\n//#nosec\nh := md5.New()", 1)
nosecSource := strings.Replace(source, "h := md5.New()", "//#nosec\n//G301\n//#nosec\nh := md5.New()", 1)
nosecPackage.AddFile("md5.go", nosecSource)
err := nosecPackage.Build()
Expect(err).ShouldNot(HaveOccurred())
Expand Down

0 comments on commit 88e16b9

Please sign in to comment.