Skip to content

test: riemann port already in use #11117

@powersj

Description

@powersj

Relevant telegraf.conf

n/a

Logs from Telegraf

2022/05/17 12:17:01 Entering
--- FAIL: TestSocketListener_tcp (0.00s)
    riemann_listener_test.go:25: 
        	Error Trace:	riemann_listener_test.go:25
        	Error:      	Received unexpected error:
        	            	listen tcp 127.0.0.1:5555: bind: address already in use
        	Test:       	TestSocketListener_tcp
FAIL
FAIL	github.com/influxdata/telegraf/plugins/inputs/riemann_listener	0.049s

System info

master

Docker

No response

Steps to reproduce

  1. docker-compose up
  2. go test -count=1 -race -timeout 30s ./plugins/inputs/riemann_listener/...

Expected behavior

tests to pass

Actual behavior

If the docker compose containers are running, it means that a reimann listener is already setup on port 5555. Then in the input test it attempts to start a socket listener using the same port.

Additionally, only the outputs/riemann_legacy plugin even attempts to use the reimann listener that is set up by the docker compose script, and that single test is always skipped.

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions