Skip to content

Commit 0d0136e

Browse files
committed
Fix test
1 parent 1a33caf commit 0d0136e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/integration/grpc_management_plane_api_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,10 @@ func TestGrpc_ConfigUpload(t *testing.T) {
207207
nginxInstanceID := verifyConnection(t, 2)
208208
assert.False(t, t.Failed())
209209

210-
responses := getManagementPlaneResponses(t, 2)
210+
responses := getManagementPlaneResponses(t, 1)
211211

212212
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[0].GetCommandResponse().GetStatus())
213213
assert.Equal(t, "Successfully updated all files", responses[0].GetCommandResponse().GetMessage())
214-
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[1].GetCommandResponse().GetStatus())
215-
assert.Equal(t, "Successfully updated all files", responses[1].GetCommandResponse().GetMessage())
216214

217215
request := fmt.Sprintf(`{
218216
"message_meta": {
@@ -236,14 +234,12 @@ func TestGrpc_ConfigUpload(t *testing.T) {
236234
require.NoError(t, err)
237235
assert.Equal(t, http.StatusOK, resp.StatusCode())
238236

239-
responses = getManagementPlaneResponses(t, 3)
237+
responses = getManagementPlaneResponses(t, 2)
240238

241239
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[0].GetCommandResponse().GetStatus())
242240
assert.Equal(t, "Successfully updated all files", responses[0].GetCommandResponse().GetMessage())
243241
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[1].GetCommandResponse().GetStatus())
244242
assert.Equal(t, "Successfully updated all files", responses[1].GetCommandResponse().GetMessage())
245-
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[2].GetCommandResponse().GetStatus())
246-
assert.Equal(t, "Successfully updated all files", responses[2].GetCommandResponse().GetMessage())
247243
}
248244

249245
func TestGrpc_ConfigApply(t *testing.T) {

0 commit comments

Comments
 (0)