Skip to content

Commit

Permalink
remove intermediate variable
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Alvarez <[email protected]>
  • Loading branch information
pendo324 committed Jan 12, 2024
1 parent 84a85f0 commit d86e440
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ func Logs(o *option.Option) {
defer session.Kill()
gomega.Expect(session.Out.Contents()).Should(gomega.BeEmpty())
command.Run(o, "exec", testContainerName, "sh", "-c", fmt.Sprintf("echo %s >> /proc/1/fd/1", newLog))
output := strings.TrimSpace(string(session.Out.Contents()))
// allow propagation time
gomega.Eventually(output).
gomega.Eventually(strings.TrimSpace(string(session.Out.Contents()))).
WithTimeout(15 * time.Second).
WithPolling(1 * time.Second).
Should(gomega.Equal(newLog))
Expand Down

0 comments on commit d86e440

Please sign in to comment.