Skip to content

Commit 6ef74bc

Browse files
committed
fix tests
1 parent 6698df9 commit 6ef74bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/integration/grpc_management_plane_api_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,17 @@ func TestGrpc_ConfigApply(t *testing.T) {
304304

305305
performConfigApply(t, nginxInstanceID)
306306

307-
responses = getManagementPlaneResponses(t, 1)
307+
responses = getManagementPlaneResponses(t, 2)
308308
t.Logf("Config apply responses: %v", responses)
309309

310+
sort.Slice(responses, func(i, j int) bool {
311+
return responses[i].GetCommandResponse().GetMessage() < responses[j].GetCommandResponse().GetMessage()
312+
})
313+
310314
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[0].GetCommandResponse().GetStatus())
311315
assert.Equal(t, "Config apply successful", responses[0].GetCommandResponse().GetMessage())
316+
assert.Equal(t, mpi.CommandResponse_COMMAND_STATUS_OK, responses[1].GetCommandResponse().GetStatus())
317+
assert.Equal(t, "Successfully updated all files", responses[1].GetCommandResponse().GetMessage())
312318
})
313319

314320
t.Run("Test 3: Invalid config", func(t *testing.T) {

0 commit comments

Comments
 (0)