test/plezi_tests.rb in plezi-0.10.8 vs test/plezi_tests.rb in plezi-0.10.9
- old
+ new
@@ -244,10 +244,11 @@
def test_placebo
puts " * Starting placebo tests..."
ws = GRHttp::WSClient.connect_to("ws://localhost:3000/ws/placebo") {|ws| 'ME?'}
ws << " * Placebo WS connected."
sleep 2
+ ws.close
rescue => e
puts " **** Placebo test FAILED TO RUN!!!"
puts e
end
def test_websocket
@@ -385,10 +386,10 @@
end
end
r = Plezi::Placebo.new PlaceboCtrl
puts " * Create Placebo test: #{PleziTestTasks::RESULTS[r && true]}"
-PL.create_logger '/dev/null'
+PL.create_logger nil
# PL::Settings.max_threads = 4
listen port: 3000
route("/ssl") {|req, res| res << "false" }