Commit Graph

2754 Commits

Author SHA1 Message Date
Kenneth Geisshirt d9e50fc41d better name for test 2017-09-20 14:53:28 +02:00
Brian Munkholm ca84ed4997 Merge pull request #1327 from realm/ap/fix_issue_tmpl_typo
Fix typo in Github issue template
2017-09-20 11:13:42 +02:00
Ashwin Phatak 494929a9a5 Fix typo in Github issue template 2017-09-20 14:32:25 +05:30
Ashwin Phatak 7099b9f485 Merge pull request #1326 from realm/ap/rn48_fix
Fix port conflict between RN >= 0.48 and RPC server (#1294)
2017-09-20 14:05:42 +05:30
Ashwin Phatak 17759c5ce9 Fix port conflict between RN >= 0.48 and RPC server (#1294) 2017-09-20 13:05:32 +05:30
Kenneth Geisshirt bdd9bf95f4 use local Realm 2017-09-20 09:26:30 +02:00
Thomas Goyne 936dc15c2a Merge pull request #1314 from realm/tg/listener-test
Fix race conditions in testAddListener
2017-09-19 16:32:33 -07:00
Thomas Goyne c3afa0c301 Disable testAddListener when running in chrome 2017-09-19 16:06:45 -07:00
Thomas Goyne 41440125cb Ensure RN has an event loop running for async tests 2017-09-19 15:45:07 -07:00
Thomas Goyne e8e23bbee7 Make permission tests better handle server delays
Retry a few times if the request hasn't been processed yet rather than hoping
that a 100ms sleep will suffice.
2017-09-19 13:14:49 -07:00
Thomas Goyne 8ad5c36cca Fix race conditions in testAddListener
The test was resolving the promise long before it actually finished running,
leading to it not testing what it was trying to test and sometimes crashing.
2017-09-19 10:57:01 -07:00
Thomas Goyne c0db1a6eff Merge pull request #1315 from realm/tg/test-realm-errors
Check the exception message in all Realm tests which assert an exception is thrown
2017-09-19 07:40:48 -07:00
blagoev cac26b1af4 Revert ROS version for iOS testing 2017-09-19 16:40:11 +03:00
blagoev 5ea8ff1685 Fix xcode project 2017-09-19 16:38:11 +03:00
Kenneth Geisshirt e68d68168b test file 2017-09-19 14:16:58 +02:00
Kenneth Geisshirt abe0781565 Encode exception type and path in string 2017-09-19 14:16:15 +02:00
Kenneth Geisshirt c3b81c768d wip 2017-09-19 11:31:58 +02:00
Kenneth Geisshirt a6bbaeb580 [2.0.0-rc9] Bump version 2017-09-19 08:25:11 +02:00
Thomas Goyne f3f51ece76 Separate build and test steps in xcode to reduce chance of hitting "Early unexpected exit" 2017-09-18 22:32:41 -07:00
Thomas Goyne d04a45b8d1 Ignore errors when sourcing nvm.sh
It fails spuriously if it fails to understand the version of system node.
2017-09-18 21:34:34 -07:00
Thomas Goyne e1f3cd638f Don't forward arguments to nvh.sh 2017-09-18 21:34:34 -07:00
Thomas Goyne 5189915980 Skip sourcing nvm.sh if it's already available 2017-09-18 16:23:35 -07:00
Thomas Goyne ada601354c Fix some shellcheck warnings 2017-09-18 16:07:07 -07:00
Thomas Goyne 604968a987 Ensure node 6.5.0 is installed on CI 2017-09-18 12:20:09 -07:00
Thomas Goyne 70739d632b Build realm from source for each test-runner test
Without this node-pre-gyp will instead download the prebuilt binary and test
that, and I couldn't find a way to persuade node-pre-gyp to "download" the
locally built copy.
2017-09-18 11:58:37 -07:00
Kenneth Geisshirt 183f051bb1 v1 -> v2 upgrade path 2017-09-18 17:44:17 +02:00
Kenneth Geisshirt 616f5d79e6 Fixing merge 2017-09-18 10:05:06 +02:00
Kenneth Geisshirt 1184fc2c0b Merge branch 'tg/update-object-store' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:49 +02:00
Kenneth Geisshirt eeb78d8e1b Merge branch 'master' of github.com:realm/realm-js into 2.0.x 2017-09-18 09:46:36 +02:00
Thomas Goyne 0c9d7ca54e Improve error reporting for incorrect argument counts for Realm methods
Report the expected and actual arg counts for too many arguments, and behave
more like normal JS when too few are supplied (i.e. complain about the next
argument being undefined rather than just saying 'Invalid arguments').
2017-09-15 15:00:13 -07:00
Thomas Goyne 742ff99003 Use the same error messages in the RPC code as the regular code 2017-09-15 15:00:13 -07:00
Thomas Goyne e697ae3d5c Silence an unused variable warning when building with sync disabled 2017-09-15 13:12:44 -07:00
Kenneth Geisshirt b3ff7ada62 Documenting sync.config properties (#1312)
* Documenting sync.config properties
* Updating TypeScript definitions
2017-09-15 15:22:44 +02:00
Thomas Goyne 53ca09839e Check the exception message in all Realm tests which assert an exception is thrown 2017-09-14 16:40:58 -07:00
Thomas Goyne 4ad75c9546 Don't discard the actual error message in validated_get_X 2017-09-14 16:25:33 -07:00
Thomas Goyne b8fd4fb861 Add the invalid value to the type error exception message 2017-09-14 16:25:33 -07:00
Thomas Goyne e564ad1de8 Improve the errors thrown for invalid schema definitions 2017-09-14 16:25:33 -07:00
Thomas Goyne aac7d1498a Throw a more appropriate error for some operations on closed Realms 2017-09-14 16:25:33 -07:00
Kenneth Geisshirt e18f54594f [1.12.0] Bump verion 2017-09-14 11:07:47 +02:00
Kenneth Geisshirt 8606d37141 Fixes to issues reported by eslint (#1313) 2017-09-14 10:35:02 +02:00
astigsen 208aa8ee46 Added support for in-memory realms (#1304)
* Added support for in-memory realms
2017-09-13 20:42:23 +02:00
blagoev 03bc224374 Merge pull request #1302 from realm/blagoev/promise3
Blagoev/promise3
2017-09-13 15:07:53 +03:00
blagoev 876a289da1 Merge pull request #1310 from realm/add-typescript-compile-check
add typescript definition compilation checks on every test run
2017-09-13 15:07:21 +03:00
blagoev 064b487c07 Merge branch 'master' into blagoev/promise3 2017-09-13 14:27:04 +03:00
blagoev 6cdbe503b7 fix docs 2017-09-13 13:55:27 +03:00
blagoev e48d3ae638 Fix for index.d.ts 2017-09-13 13:03:28 +03:00
blagoev 8ba71e36c7 add typescript definition compilation checks on every test run 2017-09-13 12:59:13 +03:00
blagoev 591c32f984 Merge pull request #1309 from realm/fix-1306
Fix typescript definitions
2017-09-13 12:54:13 +03:00
blagoev f7db865458 Fix typescript definitions
Fixes #1306
2017-09-13 12:37:44 +03:00
Kenneth Geisshirt 6444f3fa6f Adding missing instructions to TypeScript definitions (#1301) 2017-09-13 09:21:26 +02:00