Feat: healthcheck uses ping instead of DNS
This commit is contained in:
20
internal/healthcheck/health_ping_test.go
Normal file
20
internal/healthcheck/health_ping_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//go:build integration
|
||||
|
||||
package healthcheck
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func Test_healthCheck_ping(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
pinger := newPinger()
|
||||
|
||||
err := healthCheck(context.Background(), pinger)
|
||||
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
Reference in New Issue
Block a user