diff --git a/config/database.yml b/config/database.yml
index 079ea7b4a9f44c81c50d283013d16a1bd31247d3..f74635a3690a49bb68625c6e6d83dd06826b15b8 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -18,10 +18,10 @@ development:
 test:
   <<: *default
   database: mastodon_test<%= ENV['TEST_ENV_NUMBER'] %>
-  username: <%= ENV['TEST_DB_USER'] %>
-  password: <%= ENV['TEST_DB_PASS'] %>
-  host: <%= ENV['TEST_DB_HOST'] %>
-  port: <%= ENV['TEST_DB_PORT'] %>
+  username: <%= ENV['DB_USER'] %>
+  password: <%= ENV['DB_PASS'] %>
+  host: <%= ENV['DB_HOST'] %>
+  port: <%= ENV['DB_PORT'] %>
 
 production:
   <<: *default