[英]Symfony Panther fails with alice bundle active
I have a weird problem.我有一个奇怪的问题。 In my Symfony project I use a Postgresql database.
在我的 Symfony 项目中,我使用了 Postgresql 数据库。
If I run my panther tests all things went well.如果我运行我的黑豹测试,一切都很顺利。
Now I have installed this bundle hautelook/alice-bundle
.现在我已经安装了这个包
hautelook/alice-bundle
。 As soon as I activate the ReloadDatabaseTrait
in a panther test this test will fail.一旦我在 panther 测试中激活
ReloadDatabaseTrait
,这个测试就会失败。 It fails due to a timeout on a database connection.由于数据库连接超时而失败。 For some reason the this bundle refuses new database connections.
出于某种原因,这个包拒绝新的数据库连接。
I use the default settings from the alice bundle with a simple yaml file.我将 alice 包中的默认设置与一个简单的 yaml 文件一起使用。
Anyone having a solution for this?有人对此有解决方案吗? Thanks in advance!
提前致谢!
Found it the test.env has a reference to the env=test.发现 test.env 引用了 env=test。 This should be env=panther
这应该是 env=panther
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.