A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cloudfoundry/cli/commit/c23186c5bd74408cecf05a311c8b2af59e7dea4d below:

Displaybody should respect new line [v8] (#3151) · cloudfoundry/cli@c23186c · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -29,7 +29,7 @@ func newRequestLoggerFileWriter(ui *UI, lock *sync.Mutex, filePaths []string) *R

29 29 30 30

func (display *RequestLoggerFileWriter) DisplayBody([]byte) error {

31 31

for _, logFile := range display.logFiles {

32 -

_, err := logFile.WriteString(RedactedValue)

32 +

_, err := logFile.WriteString(fmt.Sprintf("%s\n", RedactedValue))

33 33

if err != nil {

34 34

return err

35 35

}

Original file line number Diff line number Diff line change

@@ -54,11 +54,11 @@ var _ = Describe("Request Logger File Writer", func() {

54 54 55 55

contents, err := os.ReadFile(logFile1)

56 56

Expect(err).ToNot(HaveOccurred())

57 -

Expect(string(contents)).To(Equal(RedactedValue + "\n"))

57 +

Expect(string(contents)).To(Equal(RedactedValue + "\n\n"))

58 58 59 59

contents, err = os.ReadFile(logFile2)

60 60

Expect(err).ToNot(HaveOccurred())

61 -

Expect(string(contents)).To(Equal(RedactedValue + "\n"))

61 +

Expect(string(contents)).To(Equal(RedactedValue + "\n\n"))

62 62

})

63 63

})

64 64

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4