Skip to content

Commit

Permalink
Merge pull request magento#1269 from magento-engcom/MSI-1260
Browse files Browse the repository at this point in the history
MSI-1260: Fix travis builds timeout
  • Loading branch information
Valeriy Nayda authored May 31, 2018
2 parents 22f7828 + c6bb822 commit fa01179
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
2 changes: 0 additions & 2 deletions app/code/Magento/Inventory/Model/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,6 @@ public function setFax($fax)
*/
public function isUseDefaultCarrierConfig()
{
//TODO: https://github.com/magento-engcom/msi/issues/1192
//return $this->getData(self::USE_DEFAULT_CARRIER_CONFIG);
return true;
}

Expand Down
11 changes: 1 addition & 10 deletions app/code/Magento/InventoryApi/Test/_files/source.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,7 @@
SourceInterface::FAX => 'source-fax',
SourceInterface::USE_DEFAULT_CARRIER_CONFIG => 0,
SourceInterface::USE_DEFAULT_CARRIER_CONFIG => false,
SourceInterface::CARRIER_LINKS => [
[
SourceCarrierLinkInterface::CARRIER_CODE => 'ups',
SourceCarrierLinkInterface::POSITION => 100,
],
[
SourceCarrierLinkInterface::CARRIER_CODE => 'usps',
SourceCarrierLinkInterface::POSITION => 200,
],
],
SourceInterface::CARRIER_LINKS => [],
],
SourceInterface::class
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,3 @@
$store->save();
$eventManager->dispatch('store_add', ['store' => $store]);
}

/**
* \Magento\TestFramework\Application by default generates 10 Sequence tables of each kind
* with indexes form 0 to 9, but last created Store id is greater than 9.
*/
$sequence->generateSequences($store->getId());

/* Refresh stores memory cache */
$objectManager->get(\Magento\Store\Model\StoreManagerInterface::class)->reinitStores();
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class SourceDeductionForVirtualProductsOnMultiStockTest extends TestCase

protected function setUp()
{
$this->markTestIncomplete('https://github.com/magento-engcom/msi/issues/1054');
$this->invoiceOrder = Bootstrap::getObjectManager()->get(InvoiceOrderInterface::class);
$this->orderRepository = Bootstrap::getObjectManager()->get(OrderRepositoryInterface::class);
$this->searchCriteriaBuilder = Bootstrap::getObjectManager()->get(SearchCriteriaBuilder::class);
Expand Down
6 changes: 3 additions & 3 deletions dev/travis/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ case $TEST_SUITE in
test_set_list=("${tests_directory[@]}" "${module_directories[@]}")

test_set_count=$(printf "$test_set_list" | wc -l)
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.15" | bc))
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.30" | bc))
test_set_size[3]=$(printf "%.0f" $(echo "$test_set_count*0.30" | bc))
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.17" | bc))
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.32" | bc))
test_set_size[3]=$(printf "%.0f" $(echo "$test_set_count*0.50" | bc))
test_set_size[4]=$((test_set_count-test_set_size[1]-test_set_size[2]-test_set_size[3]))
echo "Total = ${test_set_count}; Batch #1 = ${test_set_size[1]}; Batch #2 = ${test_set_size[2]}; Batch #3 = ${test_set_size[3]}; Batch #4 = ${test_set_size[4]};";

Expand Down

0 comments on commit fa01179

Please sign in to comment.