Commit Graph

27 Commits

Author SHA1 Message Date
Emily Stark
bb29469856 Replace runtime config regression selftest with simpler unit test 2014-10-08 14:28:24 -07:00
Emily Stark
aaa9bfb048 Add regression test for edbf05db 2014-10-08 14:05:02 -07:00
Emily Stark
3069788e01 Rework --mobile-server defaults.
* --port now requires a port ('meteor run --port example.com' isn't valid).
* --mobile-server defaults to your detected IP address and the port from
    --port.
* If you provide a value for --mobile-server, we default to http:// as
  the protocol. A host is required for --mobile-server if you don't omit
  the option entirely. Similar for the --server argument to 'meteor
  build'.

This commit includes the 'netroute' npm module as a core package (which
has binary dependencies) for IP detection. It would be nice to put it in
packages/non-core, but I think it has to be a core package in order to
uniload it.
2014-10-03 12:11:44 -07:00
Emily Stark
6041122944 Exit immediately if --parent-pid doesn't look like an integer.
If you pass "--parent-pid foobar", then we immediately log an error
message and exit. This check happens via `parseInt` rather than testing
for exceptions in `process.kill(parentPid, 0)` because `process.kill`
converts its pid argument to an integer, so `process.kill('foobar', 0)`
returns true just as `process.kill(0, 0)` does.
2014-09-26 14:01:19 -07:00
Emily Stark
2f47a81395 Comments from nim, ben 2014-09-25 15:30:17 -07:00
Emily Stark
4b739b0684 Add test for runner process being SIGKILLed. 2014-09-25 15:30:17 -07:00
Justin SB
cfefbcf28f Revert 7282c0ee5b, now that 0ac1855166 has reverted bdcf0d188 2014-09-19 19:10:37 -07:00
David Glasser
7282c0ee5b Fix test (broken by bdcf0d188 at least on my mac) 2014-09-08 21:28:41 -07:00
David Glasser
08b2625082 METEOR-CORE -> METEOR 2014-08-24 18:46:37 -07:00
David Glasser
94aab913f1 self-test now passes 2014-06-26 17:32:17 -07:00
Emily Stark
382be78710 'update during run' passes.
It looks like tools trees now always have a dev_bundle/ directory
instead of bin/, include/ etc. at the top level. Someone correct me if
I'm wrong.
2014-06-25 17:33:55 -07:00
Emily Stark
7336bf901b bump some self-test timeouts 2014-06-16 18:15:38 -07:00
David Glasser
498e572230 Make self-test less flaky with more waits. 2014-04-07 20:09:30 -07:00
David Glasser
3405644027 Fix runner.stop() while waiting for file change
Before this, if the runner decided to stop (eg, because mongod is
crashing too much) while waiting for file change, it would crash due to
an attempt to wait within a fiber.  Fixing that bug by adding an inFiber
would then lead to the process just not exiting, because nothing stops
the wait-specific future.
2014-04-02 21:16:59 -07:00
David Glasser
d287d36bac Make run tests less flaky 2014-03-31 20:03:01 -07:00
Emily Stark
e981b0c629 Bump run test timeouts 2014-02-26 14:26:13 -08:00
Emily Stark
222ac4ca65 Bump more self-test timeouts 2014-02-21 10:22:03 -08:00
Emily Stark
9669bbe368 Bump some run test timeouts 2014-02-20 17:25:14 -08:00
Emily Stark
b04aa12d39 Make 'empty' a test app with no packages.
Rename previous 'empty' app to 'standard-app'.
2014-02-14 17:59:59 -08:00
David Glasser
4ce13da406 Fixes to new 'run' test
- can't set env var mid-process
- need to control fake mongo, and wait
2014-02-13 18:48:19 -08:00
Geoff Schmidt
84e1d5f7cd Add a basic runner test. 2014-02-13 18:48:19 -08:00
David Glasser
1588ed51c4 remove console.log from 'meteor run --program x' 2014-02-11 01:17:52 -08:00
David Glasser
58a27d123c Fix and test some runner error handling issues
- Exit with failure if proxy starts to listen. Previously, we got stuck
  inside ProxyRunner.start(), and since we weren't waiting on any IO
  we'd exit 0!  (The existence of a yielded fiber is not sufficient to
  block Node exit.)

- Don't print various bits of startup text if we are stopped midway.

- Stop main Runner immediately if proxy or mongo runners invoke
  onFailure, rather than waiting for wait to be called and return.

- Ensure that a few Futures don't get return called on them multiple
  times.

- Ensure we don't try to call close() on the proxy's TCP server if it
  failed to listen in the first place.
2014-02-11 00:17:22 -08:00
David Glasser
9e9de95cd5 hopefully fix run --once test on release 2014-02-06 13:27:19 -08:00
David Glasser
7c02e4a59d utils.sleep -> utils.sleepMs
multiply one by a thousand
2014-02-04 17:46:19 -08:00
Geoff Schmidt
e1994f6ece First installment of 'meteor run' tests.
Tests meteor --once and restarting on upgrade.
2014-01-29 02:02:17 -08:00
Geoff Schmidt
377d940ba0 fake-mongod, a stub mongod for automated testing 2014-01-28 19:36:04 -08:00