Skip to content

Commit a9b921e

Browse files
committed
Adjust adapter to the latest changes in core etl library
1 parent 8806f31 commit a9b921e

File tree

3 files changed

+159
-8
lines changed

3 files changed

+159
-8
lines changed

‎composer.lock‎

Lines changed: 153 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎tests/Flow/ETL/Async/Tests/Integration/Server/SocketServerClientTest.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Flow\ETL\DSL\Entry;
1818
use Flow\ETL\DSL\Transform;
1919
use Flow\ETL\Extractor\ProcessExtractor;
20+
use Flow\ETL\FlowContext;
2021
use Flow\ETL\Pipeline\Pipes;
2122
use Flow\ETL\Row;
2223
use Flow\ETL\Rows;
@@ -33,7 +34,7 @@ public function test_start_tcp_server() : void
3334
$cacheId = \uniqid('cache_id');
3435

3536
$server->initialize(new ServerProtocol(
36-
Config::builder()->cache($cache)->build(),
37+
new FlowContext(Config::builder()->cache($cache)->build()),
3738
$cacheId,
3839
$pool = Pool::generate(1),
3940
new ProcessExtractor(
@@ -70,7 +71,7 @@ public function test_start_unix_domain_socket_server() : void
7071
$cacheId = \uniqid('cache_id');
7172

7273
$server->initialize(new ServerProtocol(
73-
Config::builder()->cache($cache)->build(),
74+
new FlowContext(Config::builder()->cache($cache)->build()),
7475
$cacheId,
7576
$pool = Pool::generate(1),
7677
new ProcessExtractor(

‎tests/Flow/ETL/Async/Tests/Unit/Server/SocketServerTest.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Flow\ETL\Exception\InvalidArgumentException;
1212
use Flow\ETL\Exception\RuntimeException;
1313
use Flow\ETL\Extractor\ProcessExtractor;
14+
use Flow\ETL\FlowContext;
1415
use Flow\ETL\Pipeline\Pipes;
1516
use PHPUnit\Framework\TestCase;
1617
use Psr\Log\NullLogger;
@@ -42,15 +43,15 @@ public function test_initialize_server_twice() : void
4243
$server = SocketServer::tcp(6541, $logger = new NullLogger());
4344

4445
$server->initialize(new ServerProtocol(
45-
Config::default(),
46+
new FlowContext(Config::default()),
4647
'cache_id',
4748
Pool::generate(1),
4849
new ProcessExtractor(),
4950
Pipes::empty()
5051
));
5152

5253
$server->initialize(new ServerProtocol(
53-
Config::default(),
54+
new FlowContext(Config::default()),
5455
'cache_id',
5556
Pool::generate(1),
5657
new ProcessExtractor(),

0 commit comments

Comments
 (0)