Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #97 from lsylvester/speed-up-tests | Jeremy Daer | 2015-10-16 | 1 | -1/+2 |
|\ | | | | | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timer | ||||
| * | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timer | Lachlan Sylvester | 2015-10-17 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The run_in_eventmachine test helper method is setting a 0.1 second timer to stop the event machine loop. This causes each test that requires an event machine loop to wait for 0.1 second regardless of how long the test takes to process. This changes that to call EM.run_deferred_callbacks, which immediatly process pending actions in the event loop and then is able to exit the event loop without doing any waiting. Before this change, running tests produced Finished in 2.957857s, 15.8899 runs/s, 27.7228 assertions/s. After, the tests get Finished in 0.065942s, 712.7514 runs/s, 1243.5237 assertions/s. | ||||
* | | Devolve blanket #require to reveal intent and responsibility | Jeremy Daer | 2015-10-16 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | * Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`. | ||||
* | | Shush some low-hanging Ruby warnings | Jeremy Daer | 2015-10-16 | 1 | -2/+6 |
|/ | |||||
* | Websockets -> WebSocket spelling [ci skip] | Jeremy Daer | 2015-10-15 | 1 | -1/+1 |
| | |||||
* | Run connection tests in EM loop | Pratik Naik | 2015-10-15 | 1 | -0/+18 |
| | |||||
* | Update gems and requires | Thomas Walpole | 2015-07-22 | 1 | -0/+2 |
| | |||||
* | Worker tests | Pratik Naik | 2015-07-14 | 1 | -0/+2 |
| | |||||
* | Remove busted tests | Pratik Naik | 2015-07-13 | 1 | -28/+0 |
| | |||||
* | Always load all the stub files | Pratik Naik | 2015-07-13 | 1 | -0/+3 |
| | |||||
* | Add some more tests | Pratik Naik | 2015-07-12 | 1 | -2/+1 |
| | |||||
* | Load mocha for tests | Pratik Naik | 2015-07-12 | 1 | -0/+2 |
| | |||||
* | Dont create the test log file | Pratik Naik | 2015-02-13 | 1 | -4/+0 |
| | |||||
* | No cramp and use celluloid workers to run callbacks | Pratik Naik | 2015-02-05 | 1 | -2/+1 |
| | |||||
* | Add some tests. Work in progress. Testing websockets is hard. | Pratik Naik | 2015-01-15 | 1 | -0/+46 |