Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancelling thread start while unit tests running
This change modifies the Radware driver and its unit testing code to not start operations completion thread while unit tests are running. The driver initialization changed not to start the operations completion thread, the thread is started only when operation completion item is inserted into the queue for the first time. The operation completion functionality was moved to a new function which is called by the operations completion thread run() function. The run() function still have the functionality of popping operation completion items out of the queue and push failed items back. Unit testing code mocks the operation completion items queue by calling the operations completion hanler new function when item is added. Start() and join() functions of the thread were mocked to do nothing. All sleep() entrances were removed from the unit testing code. All unnecessary mock_reset() calls were removed. Change-Id: I72380bf223be690831aba1fc29c3dca910245516 Closes-Bug: #1245208
- Loading branch information
1 parent
b76c9e8
commit d52f84d
Showing
2 changed files
with
103 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.