Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nick committed Nov 5, 2024
1 parent ed28112 commit e78534e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/Manticoresearch/Endpoints/Nodes/TablesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ public function testTables() {
$helper = new PopulateHelperTest();
$client = $helper->getClient();
$response = $client->nodes()->tables();
// Adding extra try-catch to provide compatibility with previous Manticore versions
try {
$this->assertEquals(['products' => 'rt'], $response);
} catch (\Manticoresearch\Exceptions\ResponseException $e) {
$this->assertEquals(['test' => 'rt'], $response);
}
$result = [
'Table' => 'products',
'Type' => 'rt',
];
$this->assertEquals($result, $response);
}
}

0 comments on commit e78534e

Please sign in to comment.