Skip to content

Commit

Permalink
WCMS-21638 another attempt to fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zedmonds96 committed Nov 26, 2024
1 parent 0aeca53 commit 8958a18
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,8 @@ private function getQueryContainer(int $rowLimit) {
->add(Query::class, "getQueryStorageMap", $storageMap)
->add(Query::class, 'getDatastoreService', DatastoreService::class)
->add(DatastoreService::class, 'getDataDictionaryFields', NULL)
->add(ImmutableConfig::class, 'get', function ($key) use ($rowLimit) {
if ($key === 'response_stream_max_age') {
return 3600; // Correct value for the test.
}
return $rowLimit;
->add(ImmutableConfig::class, 'get', function ($key) {
return $key === 'response_stream_max_age' ? 3600 : 50;
});

return $chain->getMock();
Expand Down

0 comments on commit 8958a18

Please sign in to comment.