@@ -1365,7 +1365,7 @@ def test_devcontainer_mysql
1365
1365
assert_includes content [ "forwardPorts" ] , 3306
1366
1366
end
1367
1367
assert_file ( "config/database.yml" ) do |content |
1368
- assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "localhost " } %>/ , content )
1368
+ assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "127.0.0.1 " } %>/ , content )
1369
1369
end
1370
1370
end
1371
1371
@@ -1393,7 +1393,7 @@ def test_devcontainer_trilogy
1393
1393
assert_includes ( content [ "forwardPorts" ] , 3306 )
1394
1394
end
1395
1395
assert_file ( "config/database.yml" ) do |content |
1396
- assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "localhost " } %>/ , content )
1396
+ assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "127.0.0.1 " } %>/ , content )
1397
1397
end
1398
1398
end
1399
1399
@@ -1421,7 +1421,7 @@ def test_devcontainer_mariadb_mysql
1421
1421
assert_includes ( content [ "forwardPorts" ] , 3306 )
1422
1422
end
1423
1423
assert_file ( "config/database.yml" ) do |content |
1424
- assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "localhost " } %>/ , content )
1424
+ assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "127.0.0.1 " } %>/ , content )
1425
1425
end
1426
1426
end
1427
1427
@@ -1448,7 +1448,7 @@ def test_devcontainer_mariadb_trilogy
1448
1448
assert_includes ( content [ "forwardPorts" ] , 3306 )
1449
1449
end
1450
1450
assert_file ( "config/database.yml" ) do |content |
1451
- assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "localhost " } %>/ , content )
1451
+ assert_match ( /host: <%= ENV.fetch\( "DB_HOST"\) \{ "127.0.0.1 " } %>/ , content )
1452
1452
end
1453
1453
end
1454
1454
0 commit comments