]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't wait for request in http spec.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 4 Oct 2013 15:39:34 +0000 (23:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 4 Oct 2013 15:39:34 +0000 (23:39 +0800)
This spec is used to crash atom-shell, we don't care if http request
succeeds.

spec/web/http.coffee

index 896f3cf3b8b9813762a752ef7c0440bb5c399bc6..c7db44700651b4d632282f2b65ed4a6fec6fc5e8 100644 (file)
@@ -1,7 +1,4 @@
 describe 'http', ->
   describe 'sending request of http protocol urls', ->
-    it 'should not crash', (done) ->
-      $.ajax
-        url: 'http://127.0.0.1'
-        success: -> done()
-        error: -> done()
+    it 'should not crash', ->
+      $.get 'https://api.github.com/zen'