Skip to content

Commit

Permalink
PMM-13054 fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Jun 20, 2024
1 parent f254346 commit 7d471fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions managed/services/supervisord/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func TestReadLogUnlimited(t *testing.T) {
defer os.Remove(fNoNewLineEnding.Name()) //nolint:errcheck

t.Run("UnlimitedLineCount", func(t *testing.T) {
b, m, err := readLog(f.Name(), 5)
b, m, err := readLogUnlimited(f.Name())
require.NoError(t, err)
assert.WithinDuration(t, time.Now(), m, 5*time.Second)
expected := []string{"line #000", "line #001", "line #002", "line #003", "line #004", "line #005", "line #006", "line #007", "line #008", "line #009"}
Expand All @@ -128,7 +128,7 @@ func TestReadLogUnlimited(t *testing.T) {
})

t.Run("UnlimitedLineCount - no new line ending", func(t *testing.T) {
b, m, err := readLog(fNoNewLineEnding.Name(), 5)
b, m, err := readLogUnlimited(fNoNewLineEnding.Name())
require.NoError(t, err)
assert.WithinDuration(t, time.Now(), m, 5*time.Second)
expected := []string{"line #000", "line #001", "line #002", "line #003", "line #004", "line #005", "line #006", "line #007", "line #008", "line #009", "some string without new line"}
Expand Down

0 comments on commit 7d471fa

Please sign in to comment.