poll on test start

This commit is contained in:
Tim Möhlmann
2023-04-26 19:54:47 +03:00
parent 234186c60c
commit 90ba3a8d92
5 changed files with 47 additions and 16 deletions

View File

@@ -22,7 +22,6 @@ func TestMain(m *testing.M) {
os.Exit(func() int {
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()
Tester = integration.NewTester(ctx)
defer Tester.Done()
@@ -31,7 +30,7 @@ func TestMain(m *testing.M) {
}
func TestServer_Healthz(t *testing.T) {
client := admin.NewAdminServiceClient(Tester.ClientConn)
client := admin.NewAdminServiceClient(Tester.GRPCClientConn)
_, err := client.Healthz(context.TODO(), &admin.HealthzRequest{})
require.NoError(t, err)
}