mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- Use random ports.
This commit is contained in:
parent
b9793f3600
commit
0a7f793476
1 changed files with 1 additions and 2 deletions
|
@ -22,8 +22,7 @@ class TestInputSyslog < LogStash::TestCase
|
|||
1.upto(30) do
|
||||
begin
|
||||
# Grab a a random port to listen on.
|
||||
#@port = (rand * 30000 + 20000).to_i
|
||||
@port = 12345
|
||||
@port = (rand * 30000 + 20000).to_i
|
||||
config["inputs"][@type] = ["syslog://127.0.0.1:#{@port}"]
|
||||
super(config)
|
||||
done = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue