Skip to content

Commit

Permalink
Update logs test params
Browse files Browse the repository at this point in the history
Signed-off-by: Vishwas Siravara <[email protected]>
  • Loading branch information
vsiravar committed Sep 20, 2023
1 parent 8ee0756 commit f48ed7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ func Logs(o *option.Option) {
time.Sleep(2 * time.Second)
output := command.StdoutStr(o, "logs", "--since", "1s", testContainerName)
gomega.Expect(output).Should(gomega.BeEmpty())
output = command.StdoutStr(o, "logs", "--since", "3s", testContainerName)
output = command.StdoutStr(o, "logs", "--since", "5s", testContainerName)
gomega.Expect(output).Should(gomega.Equal(foo))
})

ginkgo.It("should show log message depending on a relative time with --until flag", func() {
time.Sleep(2 * time.Second)
output := command.StdoutStr(o, "logs", "--until", "1s", testContainerName)
gomega.Expect(output).Should(gomega.Equal(foo))
output = command.StdoutStr(o, "logs", "--until", "3s", testContainerName)
output = command.StdoutStr(o, "logs", "--until", "5s", testContainerName)
gomega.Expect(output).Should(gomega.BeEmpty())
})
})
Expand Down

0 comments on commit f48ed7d

Please sign in to comment.