change risky test

This commit is contained in:
crazywhalecc
2022-05-10 16:03:37 +08:00
parent d06b0dd6d6
commit 1d70bc4ed7

View File

@@ -48,12 +48,12 @@ class ZMConfigTest extends TestCase
*/
public function testReload()
{
$this->expectOutputRegex('/没读取过,正在从文件加载/');
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
ZMConfig::reload();
Console::setLevel(4);
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
Console::setLevel(0);
$this->assertStringContainsString('没读取过,正在从文件加载', $this->getActualOutput());
}
public function testSetAndRestoreDirectory()