| Summary: | [tern] Tests can get the wrong results due to other tests putting contents in the global scope | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | JS Tools | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michael_Rennie, steve_northover |
| Version: | 10.0 | ||
| Target Milestone: | 11.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Curtis Windatt
Steve noticed this behaviour before in the editor where he had multiple files in the workspace with global scope contents and Tern would choose one. Options exist to fix this: 1) Make sure we remove the file from Tern during after() rather than during test setup. 2) Reset the tern server entirely to remove all files before() each suite 3) Modify the tests to pass http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e07107573723ebdffac71248772d015455cf3125 Fixes the calls to start/reset the server in the testing worker. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=57a15a69f1ced12bf959d0bf2428885b879d68fd Adds a server.start call to every test suite that actually uses the worker. I did not see any performance issues from this change. |