Feat: healthcheck uses ping instead of DNS

This commit is contained in:
Quentin McGaw (desktop)
2021-09-11 21:49:46 +00:00
parent 0eccd068e5
commit 541a4a3271
8 changed files with 215 additions and 27 deletions

View 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)
}