<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Testing on Saroj Maharjan</title>
		<link>https://sarojmaharjan.com/tags/testing/</link>
		<description>Recent content in Testing on Saroj Maharjan</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
			<copyright>&amp;copy; All rights reserved.</copyright>
		
		
			<lastBuildDate>Thu, 22 Oct 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://sarojmaharjan.com/tags/testing/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Why Rails Parallel Tests Hang Forever on a Postgres Lock</title>
				<link>https://sarojmaharjan.com/blog/rails-parallel-tests-hang-postgres-lock/</link>
				<pubDate>Thu, 22 Oct 2026 00:00:00 +0000</pubDate>
				<guid>https://sarojmaharjan.com/blog/rails-parallel-tests-hang-postgres-lock/</guid>
				<description>&lt;p&gt;&lt;code&gt;bin/rails test&lt;/code&gt; stopped printing and never finished.&lt;/p&gt;&#xA;&lt;p&gt;Not a failure. Not a stack trace. The log just froze mid-run, and the parent process sat at 0% CPU:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Running 2014 tests in parallel using 10 processes&#xA;# Running:&#xA;&#xA;CalculatorsControllerTest#test_each_tool_page_has_a_markdown_twin = 0.04 s = .&#xA;CompanyIssue::AccountResultSyncTest#test_names_an_application_it_can_already_identify_without_asking_twice = 0.01 s = .&#xA;ConfirmModalFormsTest#test_each_destructive_action_renders_a_hidden_form_the_controller_can_submit = 0.25 s = .&#xA;SocialImageGeneratorTest#test_all_templates_produce_images_of_similar_size = 13.75 s = .&#xA;SocialImageGeneratorTest#test_renders_valid_PNG_for_each_template = 15.49 s = .&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Wait. Nothing else.&lt;/p&gt;&#xA;&lt;p&gt;Those last tests render social cards in a headless browser, so they take 7–15 seconds — the slowest in the suite. Of course I went looking at that commit.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
