diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/models/article_spec.rb
+++ b/spec/models/article_spec.rb
@@ -171,6 +171,11 @@ describe Article, type: :model do
         allow(mock_pinger).to receive(:send_pingback_or_trackback)
 
         article.save!
+
+        10.times do
+          break if Thread.list.count == 1
+          sleep 0.1
+        end
       end
 
       it 'lets a Ping::Pinger object send pingback to the external URLs' do
@@ -178,13 +183,6 @@ describe Article, type: :model do
           with(article.permalink_url, Ping)
         expect(mock_pinger).to have_received :send_pingback_or_trackback
       end
-
-      after do
-        10.times do
-          break if Thread.list.count == 1
-          sleep 0.1
-        end
-      end
     end
   end
Ensure threads are done before checking calls