{"push_id":2302189964,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"74dea0e004c0d8491530a978f004e2c072671d18","before":"1abc070d7ab99127075f5335cdebfdc9f3c79628","commits":[{"sha":"74dea0e004c0d8491530a978f004e2c072671d18","author":{"name":"Ian Jennings","email":"668fd45181c31193793d12a7f2ecb1f2376600d1@meetjennings.com"},"message":"Connection Management, Test Refactor (#289)\n\n* start dividing up bootstrap function\r\n\r\n* remove authdata object\r\n\r\n* mock refresh\r\n\r\n* successfully reauthenticate\r\n\r\n* cleanup\r\n\r\n* only restore connection to previously conencted chats\r\n\r\n* remove unused var\r\n\r\n* refactor refresh to support auth reconnect\r\n\r\n* remove stray console log\r\n\r\n* refactor into nice individual methods\r\n\r\n* refactor bootstrap methods\r\n\r\n* cleanup test file\r\n\r\n* remove console log from event.js\r\n\r\n* increase timeouts for beforeeach\r\n\r\n* remove setup from repo\r\n\r\n* document sleep, wake, onconnected, ondisconnected\r\n\r\n* more docs and renaming\r\n\r\n* new test for logging out and in as new users\r\n\r\n* fix out change user test\r\n\r\n* uncomment tests\r\n\r\n* try using old travis config\r\n\r\n* remove race condition from test\r\n\r\n* don't disconnect earlier chat\r\n\r\n* timeout for sync test\r\n\r\n* see if timeout helps tests pass\r\n\r\n* see if travis tests pass without disconnection scripts\r\n\r\n* use consistant global channel\r\n\r\n* refactor tests to use new global\r\n\r\n* populate history before running tests\r\n\r\n* increase timeouts\r\n\r\n* very long timeouts\r\n\r\n* try without history\r\n\r\n* completely remove history from tests\r\n\r\n* more test tuning\r\n\r\n* change up boot order\r\n\r\n* make some progress on debugging\r\n\r\n* more verbose logging for travis\r\n\r\n* even more verbosity\r\n\r\n* remove pubnub connection test\r\n\r\n* test new origin\r\n\r\n* further debbuging\r\n\r\n* begin mocking pubnub endpoints\r\n\r\n* refactor for predictable endpoints\r\n\r\n* remove fixtures\r\n\r\n* passing fixtures for mock\r\n\r\n* success case\r\n\r\n* actually working fixtures, though 4 tests failing\r\n\r\n* passing locally\r\n\r\n* fix some race\r\n\r\n* better isolation\r\n\r\n* i suspect this makes travis fail\r\n\r\n* more debug\r\n\r\n* double connection cb implementation fix\r\n\r\n* isolate channels from session sync\r\n\r\n* merge in master\r\n\r\n* test here_now delay fix\r\n\r\n* add scratch cleanup method\r\n\r\n* cleanup reset function in tests\r\n\r\n* more details for uuid\r\n\r\n* more info about get state failing\r\n\r\n* bring back manual global state fetch\r\n\r\n* wait to disconnect before reconneting\r\n\r\n* try try try\r\n\r\n* refactor disconnection\r\n\r\n* pn config options\r\n\r\n* further test isolation\r\n\r\n* update pubnub package\r\n\r\n* test theory that pubnub pam is slow\r\n\r\n* new global channel for every test\r\n\r\n* same three failing tests\r\n\r\n* still 403?\r\n\r\n* continue trying\r\n\r\n* travis debug\r\n\r\n* space in channel name bug fix\r\n\r\n* see if we can get second to last one to pass\r\n\r\n* further debug\r\n\r\n* try again\r\n\r\n* isolate invite test\r\n\r\n* unit passing\r\n\r\n* only log if we're really restoring session\r\n\r\n* uncomment rest of tests\r\n\r\n* more debug\r\n\r\n* more logging\r\n\r\n* revert new pnconfig settings\r\n\r\n* problem getting user state debug\r\n\r\n* more debug\r\n\r\n* no more here now\r\n\r\n* long timeouts for everything\r\n\r\n* logging on backend\r\n\r\n* lets test this\r\n\r\n* continue trying\r\n\r\n* increase timeout\r\n\r\n* try predictable channels\r\n\r\n* see if things pass\r\n\r\n* predictable username change\r\n\r\n* don't let private channel stuff happen more than once\r\n\r\n* replace . in verison with -\r\n\r\n* different global channels per test run\r\n\r\n* test bugfix\r\n\r\n* see if it's just this test\r\n\r\n* bring back get usre state function\r\n\r\n* try race fix for test\r\n\r\n* more debugging for travis\r\n\r\n* try to stop tests from interfering\r\n\r\n* bring back delete event test\r\n\r\n* further isolation by scoping variable reference\r\n\r\n* uncomment final test\r\n\r\n* more debugging for invite failing\r\n\r\n* more debug for last failing test\r\n\r\n* more debug log for failing\r\n\r\n* see if things pass without connection tests\r\n\r\n* now with connection tests but no refresh\r\n\r\n* cleanup debugging statements\r\n\r\n* again, without connection tests, again\r\n\r\n* logging for session notify chat\r\n\r\n* Name function\r\n\r\n* reset cache between loads\r\n\r\n* bring back chatengine.disconnect and destroy before every test\r\n\r\n* stability\r\n\r\n* better location for clearing npm cache\r\n\r\n* include last test\r\n\r\n* don't delete setup files in this pull'\r\n\r\n* test if keepalive is making tests fail\r\n\r\n* keepalive as an option\r\n\r\n* destroy as a arrow function\r\n\r\n* remove instance reset that never executes\r\n\r\n* remove instance reset that is never executed\r\n\r\n* remove instances var\r\n\r\n* remove keepalive comment\r\n\r\n* connection reconfig\r\n\r\n* test debug settings\r\n\r\n* get state test\r\n\r\n* test with new cody socket hangup\r\n\r\n* use default timeout\r\n\r\n* bootstrap series\r\n\r\n* lets see if connection management is the culprit\r\n\r\n* keepalive settings revert\r\n\r\n* nvm that\r\n\r\n* try to fix session delete\r\n\r\n* might not be connected to own direct channel yet\r\n\r\n* back to testing of connection tests as culprit\r\n\r\n* try without ssl\r\n\r\n* debug for synchat\r\n\r\n* simpler timeout for should get message\r\n\r\n* remove joke comment, test travis again\r\n\r\n* remove ssl comment, move keepalive settings up in file","distinct":true,"url":"https://api.github.com/repos/pubnub/chat-engine/commits/74dea0e004c0d8491530a978f004e2c072671d18"}]}
{"actor":{"display_login":"ianjennings"}}