WHAT Implement an integration test with more than 1 device with the same app and version calling the /init in parallel and check if the totals are equal the expected value (For example 10 devices == totals +10) WHY The project is defined to count+1 when the init calls are made for each device and these totals are added in the version table which means that more than 1 device can try to do it easily. Then, if it faces concurrence issues the data will be lost. Example Scenario:
- The total is 10
- The device A and B call the /init
- At the end the total need to be 12 since it will be +1 for each device.
However, if it faces a concurrence issue the total will be 11 and data will be lost. PS: Todo after we finish the /init implementation |