Skip to content

Commit 3ca8d3a

Browse files
authored
fixes product search tests (GoogleCloudPlatform#794)
1 parent 36a785a commit 3ca8d3a

File tree

6 files changed

+148
-163
lines changed

6 files changed

+148
-163
lines changed

vision/composer.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,5 @@
6060
"require-dev": {
6161
"phpunit/phpunit": "~4",
6262
"google/cloud-tools": "^0.8.5"
63-
},
64-
"autoload-dev": {
65-
"files": [
66-
"test/ProductSearchTestTrait.php"
67-
]
6863
}
6964
}

vision/src/product_set_import.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ function product_set_import($projectId, $location, $gcsUri)
6868
printf('Status code not OK: %s' . PHP_EOL, $status->getMessage());
6969
}
7070
}
71-
} else{
72-
print($operation->getError()->getMessage());
71+
print('IMPORTANT: You will need to wait up to 30 minutes for indexing to complete' . PHP_EOL);
72+
} else {
73+
printf('Error: %s' . PHP_EOL, $operation->getError()->getMessage());
7374
}
74-
75+
7576
$client->close();
7677
}
7778
// [END vision_product_search_import_product_images]

vision/test/ProductSearchTestTrait.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

vision/test/data/indexed_product_sets.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

vision/test/data/product_sets.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)