This commit is contained in:
Marcel Pociot
2021-06-22 10:28:32 +02:00
parent 71ce328eb0
commit 48c759a7d9
2 changed files with 14 additions and 15 deletions

View File

@@ -155,19 +155,6 @@ class TunnelTest extends TestCase
$this->assertInstanceOf(Connection::class, $connection);
}
/** @test */
public function it_rejects_tcp_sharing_if_disabled()
{
$this->createTestTcpServer();
$this->app['config']['expose.admin.allow_tcp_port_sharing'] = false;
$this->expectException(\UnexpectedValueException::class);
$client = $this->createClient();
$this->await($client->connectToServerAndShareTcp(8085));
}
/** @test */
public function it_rejects_tcp_sharing_if_forbidden()
{
@@ -707,7 +694,9 @@ class TunnelTest extends TestCase
->setPort(8080)
->createClient();
return app(Client::class);
$client = app(Client::class);
$client->shouldExit(false);
return $client;
}
protected function createUser(array $data)