gatus
gatus copied to clipboard
TestPing failures when running during docker container build
Describe the bug
After upgrading to gatus 5.8.0, TestPing fails when run while building Dockerfile. This seems to be relates to the code in lines 95-99 of client_test.go
What do you see?
#9 58.95 ok github.com/TwiN/gatus/v5/alerting/provider/twilio 1.016s
#9 60.44 ok github.com/TwiN/gatus/v5/api 1.438s
#9 60.44 --- FAIL: TestPing (0.55s)
#9 60.44 client_test.go:95: expected true
#9 60.44 client_test.go:97: Round-trip time returned on failure should've been 0
#9 60.44 FAIL
#9 60.44 FAIL github.com/TwiN/gatus/v5/client 1.350s
What do you expect to see?
Expected to test to pass.
List the steps that must be taken to reproduce this issue
Modify Dockerfile
to enable tests and run docker build . --file Dockerfile
.
Version
5.8.0
Additional information
Seems to be related to #661, when attempting to ping ::1
on container which supports only ipv4...