Closed ghost closed 11 years ago
Here's another example of problems in the TwoUsersApiTest setup:
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[==========] 1 test from TwoUsersApiTest
[ RUN ] TwoUsersApiTest.FUNC_AddContactWithMessage
I 1 16:04:21.642676 lifestuff/rcs_helper.cc:80] Started PD client node.
I 1 16:04:23.656798 lifestuff/detail/user_credentials_impl.cc:602] ANMID: 0, ANSMID: 0, ANTMID: 0, PMID path: 0
I 1 16:04:24.650410 lifestuff/detail/user_credentials_impl.cc:771] MID: 0, SMID: 0, TMID: 0, STMID: 0
I 1 16:04:29.666611 lifestuff/lifestuff_impl.cc:291] user_credentials_->CreateUser success.
I 1 16:04:30.147887 lifestuff/lifestuff_impl.cc:301] CreateVaultInLocalMachine success.
I 1 16:04:31.038380 lifestuff/lifestuff_impl.cc:310] SetValidPmidAndInitialisePublicComponents success.
I 3 16:04:31.997368 lifestuff/detail/public_id.cc:187] Stored ANMPID
I 3 16:04:32.432460 lifestuff/detail/public_id.cc:210] Stored MPID
I 3 16:04:32.524151 lifestuff/detail/public_id.cc:234] Stored MCID
I 3 16:04:32.881790 lifestuff/detail/public_id.cc:256] Stored MMID key
I 1 16:04:33.002121 lifestuff/detail/public_id.cc:154] result: 0
I 1 16:04:33.520508 lifestuff/detail/public_id.cc:1364] Success storing the lifestuff card.
I 1 16:04:33.520681 lifestuff/detail/public_id.cc:869] PublicId::GetNewContacts: 0a6ZD
S 1 16:04:33.672664 lifestuff/lifestuff_impl.cc:351] Success creating public ID: 0a6ZD
I 1 16:04:33.672747 lifestuff/tests/api/api_test_resources.cc:339] About to stop messages and intros
I 1 16:04:33.672849 lifestuff/tests/api/api_test_resources.cc:346] About to unmount drive
I 4 16:04:33.672853 lifestuff/detail/public_id.cc:849] Timer cancel triggered: Operation canceled
I 4 16:04:33.673278 lifestuff/detail/message_handler.cc:250] Timer cancel triggered: Operation canceled
I 1 16:04:33.710789 lifestuff/tests/api/api_test_resources.cc:353] About to log out
I 1 16:04:33.710893 lifestuff/detail/session.cc:401] SerialiseDataAtlas - Has drive data.
I 1 16:04:34.532873 lifestuff/detail/user_credentials_impl.cc:867] MID: 0, SMID: 0, TMID: 0, STMID: 0
S 1 16:04:34.532966 lifestuff/detail/user_credentials_impl.cc:883] Success in SaveSession.
I 1 16:04:34.599274 lifestuff/detail/routings_handler.cc:171] RoutingsHandler::DeleteRoutingObject erased: 1, out of: 1
I 1 16:04:34.612651 lifestuff/detail/routings_handler.cc:83] Cleared objects
I 1 16:04:34.623110 lifestuff/tests/api/api_test_resources.cc:385]
Done with user 1
I 1 16:04:35.219536 lifestuff/rcs_helper.cc:80] Started PD client node.
I 1 16:04:37.389683 lifestuff/detail/user_credentials_impl.cc:602] ANMID: 0, ANSMID: 0, ANTMID: 0, PMID path: 0
I 1 16:04:38.501931 lifestuff/detail/user_credentials_impl.cc:771] MID: 0, SMID: 0, TMID: 0, STMID: 0
I 1 16:04:43.515709 lifestuff/lifestuff_impl.cc:291] user_credentials_->CreateUser success.
I 1 16:04:44.288710 lifestuff/lifestuff_impl.cc:301] CreateVaultInLocalMachine success.
I 1 16:04:45.439578 lifestuff/lifestuff_impl.cc:310] SetValidPmidAndInitialisePublicComponents success.
I 6 16:04:46.423162 lifestuff/detail/public_id.cc:187] Stored ANMPID
I 7 16:05:10.846175 lifestuff/detail/public_id.cc:210] Stored MPID
I 7 16:05:10.940278 lifestuff/detail/public_id.cc:234] Stored MCID
I 7 16:05:35.573264 lifestuff/detail/public_id.cc:256] Stored MMID key
I 1 16:05:35.686764 lifestuff/detail/public_id.cc:154] result: 0
I 1 16:06:00.156025 lifestuff/detail/public_id.cc:1364] Success storing the lifestuff card.
I 1 16:06:00.156172 lifestuff/detail/public_id.cc:869] PublicId::GetNewContacts: trKEB
S 1 16:06:00.333673 lifestuff/lifestuff_impl.cc:351] Success creating public ID: trKEB
I 1 16:06:00.333758 lifestuff/tests/api/api_test_resources.cc:339] About to stop messages and intros
I 8 16:06:00.333854 lifestuff/detail/message_handler.cc:250] Timer cancel triggered: Operation canceled
I 1 16:06:00.333854 lifestuff/tests/api/api_test_resources.cc:346] About to unmount drive
I 9 16:06:00.333860 lifestuff/detail/public_id.cc:849] Timer cancel triggered: Operation canceled
I 1 16:06:00.370760 lifestuff/tests/api/api_test_resources.cc:353] About to log out
I 1 16:06:00.370865 lifestuff/detail/session.cc:401] SerialiseDataAtlas - Has drive data.
I 1 16:06:23.099212 lifestuff/detail/user_credentials_impl.cc:867] MID: 0, SMID: 0, TMID: 0, STMID: 0
S 1 16:06:23.099321 lifestuff/detail/user_credentials_impl.cc:883] Success in SaveSession.
I 1 16:06:23.173661 lifestuff/detail/routings_handler.cc:171] RoutingsHandler::DeleteRoutingObject erased: 1, out of: 1
I 1 16:06:23.187660 lifestuff/detail/routings_handler.cc:83] Cleared objects
I 1 16:06:23.198149 lifestuff/tests/api/api_test_resources.cc:394]
Done with user 2
I 1 16:06:23.916347 lifestuff/rcs_helper.cc:80] Started PD client node.
I 1 16:06:24.328213 lifestuff/detail/user_credentials_impl.cc:322] mid_tmid_result: 0 - false - false
I 1 16:06:24.328275 lifestuff/detail/user_credentials_impl.cc:324] smid_stmid_result: 0 - false - false
I 1 16:06:24.328355 lifestuff/detail/session.cc:343] ParseDataAtlas - Has drive data.
I 1 16:06:29.594950 lifestuff/detail/routings_handler.cc:222] sender: 3162ff..3afcd1, receiver: 3162ff..3afcd1
I 10 16:06:29.606499 lifestuff/detail/routings_handler.cc:292] receiver: 3162ff..3afcd1, sender: 3162ff..3afcd1
I 10 16:06:29.612299 lifestuff/lifestuff_impl.cc:1307] It's our own message that has been received. Ignoring...
I 11 16:06:39.595112 lifestuff/detail/routings_handler.cc:210] Message count: 0
E 1 16:06:39.595223 lifestuff/detail/routings_handler.cc:241] Message from 3162ff..3afcd1 is empty. Probably timed out in routing.
W 1 16:06:39.595302 lifestuff/detail/user_credentials_impl.cc:195] Timed out. Not necessarily a failure.
I 1 16:06:40.480680 lifestuff/detail/public_id.cc:869] PublicId::GetNewContacts: 0a6ZD
I 1 16:06:40.792161 lifestuff/tests/api/api_test_resources.cc:339] About to stop messages and intros
I 1 16:06:40.792275 lifestuff/tests/api/api_test_resources.cc:346] About to unmount drive
I 10 16:06:40.792276 lifestuff/detail/public_id.cc:849] Timer cancel triggered: Operation canceled
I 13 16:06:40.792278 lifestuff/detail/message_handler.cc:250] Timer cancel triggered: Operation canceled
I 1 16:06:40.827023 lifestuff/tests/api/api_test_resources.cc:353] About to log out
I 1 16:06:40.827124 lifestuff/detail/session.cc:401] SerialiseDataAtlas - Has drive data.
I 1 16:06:40.827749 lifestuff/detail/session.cc:455] Added contact trKEB to 0a6ZD map.
I 1 16:06:51.285707 lifestuff/detail/user_credentials_impl.cc:867] MID: 0, SMID: 0, TMID: 0, STMID: 0
S 1 16:06:51.285801 lifestuff/detail/user_credentials_impl.cc:883] Success in SaveSession.
I 1 16:06:51.848986 lifestuff/detail/routings_handler.cc:171] RoutingsHandler::DeleteRoutingObject erased: 1, out of: 1
I 1 16:06:51.862112 lifestuff/detail/routings_handler.cc:83] Cleared objects
I 1 16:06:51.872599 lifestuff/tests/api/api_test_resources.cc:454]
User 1 sent invitation to user 2
I 1 16:06:52.976494 lifestuff/rcs_helper.cc:80] Started PD client node.
E 14 16:07:14.977929 lifestuff/detail/user_credentials_impl.cc:373] No SMID found.
E 15 16:07:14.978278 lifestuff/detail/user_credentials_impl.cc:373] No MID found.
I 1 16:07:14.978384 lifestuff/detail/user_credentials_impl.cc:322] mid_tmid_result: -207008 - true - true
I 1 16:07:14.978476 lifestuff/detail/user_credentials_impl.cc:324] smid_stmid_result: -207008 - true - true
I 1 16:07:14.978548 lifestuff/detail/user_credentials_impl.cc:329] User doesn't exist: qUeE3B, 4916
I 1 16:07:14.978632 lifestuff/detail/user_credentials_impl.cc:143] UserCredentialsImpl::LogIn - failed to get user info.
E 1 16:07:14.978710 lifestuff/tests/api/api_test_resources.cc:319] Failed to create log in: -207002
I killed this test after several minutes of no output.
As per https://basecamp.com/2074288/projects/1592290-lifestuff-dev/todos/23749552-23749552-determine
Ran test once on clean network and with clean lifestuff_mgr. I have had failures when creating an account then logging it out at the start of tests, and when CreateAndConnectTwoPublicIds is called in the setup of TwoUsersApiTests.
Example (TwoUsersApiTest):
Example (OneUserApiTest):
I killed this test after a few minutes of no output.