Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 5becfb8

Browse files
author
Raül Pérez
committed
Changed port to reflect the same port than gnats
1 parent 84e23be commit 5becfb8

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

tests/Unit/ConnectionTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setUp()
5959
$options = new ConnectionOptions();
6060
if (!self::$isGnatsd) {
6161
time_nanosleep(2, 0);
62-
$options->port = 55555;
62+
$options->port = 4222;
6363
}
6464
$this->c = new Nats\Connection($options);
6565
$this->c->connect();
@@ -122,10 +122,6 @@ public function testReconnect()
122122
*/
123123
public function testSubscription()
124124
{
125-
$this->markTestIncomplete(
126-
'This test has not been implemented yet.'
127-
);
128-
129125
$callback = function ($message) {
130126
$this->assertNotNull($message);
131127
$this->assertEquals($message, 'bar');

tests/Util/ClientServerStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ClientServerStub
1717
public function __construct()
1818
{
1919
$this->sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
20-
socket_connect($this->sock, 'localhost', 55555);
20+
socket_connect($this->sock, 'localhost', 4222);
2121
}
2222

2323
public function write()

tests/Util/ListeningServerStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ListeningServerStub
1717
public function __construct()
1818
{
1919
try {
20-
if (($this->sock = socket_create_listen(55555)) === false) {
20+
if (($this->sock = socket_create_listen(4222)) === false) {
2121
echo socket_strerror(socket_last_error());
2222
} else {
2323
echo "Socket created\n";

0 commit comments

Comments
 (0)