update test for parent commit
This commit is contained in:
parent
64e99b360f
commit
074c77ccbf
|
@ -263,12 +263,12 @@ func TestRateLimiting(_t *testing.T) {
|
||||||
config := Config{
|
config := Config{
|
||||||
Follow: true,
|
Follow: true,
|
||||||
LimitRate: 2}
|
LimitRate: 2}
|
||||||
|
expecting := "Too much log activity (more than 2 lines per second being written); waiting a second before resuming tailing"
|
||||||
tail := t.StartTail("test.txt", config)
|
tail := t.StartTail("test.txt", config)
|
||||||
// TODO: also verify that tail resumes after the cooloff period.
|
// TODO: also verify that tail resumes after the cooloff period.
|
||||||
go t.VerifyTailOutput(
|
go t.VerifyTailOutput(
|
||||||
tail, []string{
|
tail,
|
||||||
"hello", "world", "again",
|
[]string{"hello", "world", "again", expecting})
|
||||||
"Too much activity; entering a cool-off period"})
|
|
||||||
|
|
||||||
// Delete after a reasonable delay, to give tail sufficient time
|
// Delete after a reasonable delay, to give tail sufficient time
|
||||||
// to read all lines.
|
// to read all lines.
|
||||||
|
|
Loading…
Reference in New Issue