Skip to content

Commit a2f778a

Browse files
committed
add test for reconnection
1 parent 927f116 commit a2f778a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration/grpc_management_plane_api_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ func setupLocalEnvironment(tb testing.TB) {
186186

187187
func TestGrpc_Reconnection(t *testing.T) {
188188
ctx := context.Background()
189-
teardownTest := setupConnectionTest(t, true, false)
189+
teardownTest := setupConnectionTest(t, false, false)
190190
defer teardownTest(t)
191191

192192
timeout := 30 * time.Second
193193

194+
t.Logf("-------------------------------- Verify Original Connection")
194195
originalID := verifyConnection(t, 2)
195196

196197
stopErr := mockManagementPlaneGrpcContainer.Stop(ctx, &timeout)
@@ -208,6 +209,7 @@ func TestGrpc_Reconnection(t *testing.T) {
208209

209210
time.Sleep(60 * time.Second)
210211

212+
t.Logf("-------------------------------- Verify Next Connection")
211213
currentID := verifyConnection(t, 2)
212214
assert.Equal(t, originalID, currentID)
213215
}

0 commit comments

Comments
 (0)