From 383b57a35039c1bda6398336fed9247307b2905d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 Nov 2016 22:19:16 +1100 Subject: [PATCH] improve test --- script/check_forking.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/check_forking.rb b/script/check_forking.rb index d0174f7448a..c0eb398502c 100644 --- a/script/check_forking.rb +++ b/script/check_forking.rb @@ -3,6 +3,9 @@ require File.expand_path("../../config/environment", __FILE__) def pretty puts "" puts PrettyText.cook("My pid is #{Process.pid}") + GC.start + sleep 1 + puts "done gc" end Discourse.after_fork