Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 19, 2025
1 parent 9d2bd54 commit 9d97940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/it/php/web/unittest/TestingServer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use peer\server\AsyncServer;
use util\cmd\Console;
use web\{Environment, Logging};
use xp\web\srv\{Protocol, HttpProtocol, WsProtocol};
use xp\web\srv\{Protocol, HttpProtocol, WebsocketProtocol};

/**
* Socket server used by integration tests.
Expand All @@ -29,7 +29,7 @@ public static function main(array $args) {
try {
$s->listen($socket, Protocol::multiplex()
->serving('http', new HttpProtocol($application, $log))
->serving('websocket', new WsProtocol($log))
->serving('websocket', new WebsocketProtocol(null, $log))
);
$s->init();
Console::writeLinef('+ Service %s:%d', $socket->host, $socket->port);
Expand Down

0 comments on commit 9d97940

Please sign in to comment.