Skip to content

Commit

Permalink
Merge pull request ycm-core#145 from mispencer/FasterSolutionFinderTests
Browse files Browse the repository at this point in the history
Faster solution finder tests
  • Loading branch information
Valloric committed Jun 1, 2015
2 parents 017d65d + ff14d02 commit 0b70b73
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ycmd/tests/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,23 +337,12 @@ def _CsCompleter_SolutionSelectCheck( app, sourcefile, reference_solution,
{ 'filepath': PathToTestFile( '.ycm_extra_conf.py' ) } )
if extra_conf_store:
app.post_json( '/load_extra_conf_file', { 'filepath': extra_conf_store } )
contents = open( sourcefile ).read()
event_data = BuildRequest( filepath = sourcefile,
filetype = 'cs',
contents = contents,
event_name = 'FileReadyToParse' )

# Here the server should raise an exception if it can't start
app.post_json( '/event_notification', event_data )
# Assuming we have a successful launch
result = app.post_json( '/run_completer_command',
BuildRequest( completer_target = 'filetype_default',
command_arguments = [ 'SolutionFile' ],
filepath = sourcefile,
filetype = 'cs' ) ).json
# We don't want the server to linger around, stop it once start completed
WaitUntilOmniSharpServerReady( app, sourcefile )
StopOmniSharpServer( app, sourcefile )
# Now that cleanup is done, verify solution file
eq_( reference_solution , result)

Expand Down

0 comments on commit 0b70b73

Please sign in to comment.