Skip to content

test: internet speed fails on bad reocrd MAC #11123

@powersj

Description

@powersj

Relevant telegraf.conf

n/a

Logs from Telegraf

2022/05/17 14:43:00 D! [] Found server: [8182]     5.09km 
Boise, ID (United States) by Sparklight
2022/05/17 14:43:00 D! [] Starting Speed Test
2022/05/17 14:43:00 D! [] Running Ping...
2022/05/17 14:43:00 D! [] Running Download...
--- FAIL: TestGathering (6.06s)
    internet_speed_test.go:21: 
        	Error Trace:	internet_speed_test.go:21
        	Error:      	Received unexpected error:
        	            	download test failed: local error: tls: bad record MAC
        	Test:       	TestGathering
2022/05/17 14:43:05 D! [] Found server: [8182]     5.09km 
Boise, ID (United States) by Sparklight
2022/05/17 14:43:05 D! [] Starting Speed Test
2022/05/17 14:43:05 D! [] Running Ping...
2022/05/17 14:43:05 D! [] Running Download...
2022/05/17 14:43:10 D! [] Running Upload...
2022/05/17 14:43:28 D! [] Test finished.
FAIL
FAIL	github.com/influxdata/telegraf/plugins/inputs/internet_speed	29.062s

System info

master

Docker

No response

Steps to reproduce

  1. ``

Expected behavior

test pass

Actual behavior

Sometimes the test fails to download or has some sort of network issue. Because this test, unlike others, has a dependency on remote networking, we should consider if we can mock this or reduce the external requirement.

Additional info

We should determine what setting we can use to limit the length of this test, to ensure it completes in a somewhat timely manner. With many tests going on at the same time I have seen it take >60 seconds, while run byitself it seems to take ~45 seconds.by itself

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