diff --git a/retail/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java b/retail/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java index 34fb33216f6..31d9427364a 100644 --- a/retail/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java +++ b/retail/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java @@ -77,8 +77,8 @@ public static void addFulfillmentPlaces(String productName, String placeId) serviceClient.addFulfillmentPlacesAsync(addFulfillmentPlacesRequest); // This is a long-running operation and its result is not immediately // present with get operations,thus we simulate wait with sleep method. - System.out.println("Add fulfillment places, wait 30 seconds: "); - TimeUnit.SECONDS.sleep(30); + System.out.println("Add fulfillment places, wait 45 seconds: "); + TimeUnit.SECONDS.sleep(45); } } } diff --git a/retail/interactive-tutorials/src/test/java/product/AddFulfillmentPlacesTest.java b/retail/interactive-tutorials/src/test/java/product/AddFulfillmentPlacesTest.java index 600a0aae19f..e561cb42ab0 100644 --- a/retail/interactive-tutorials/src/test/java/product/AddFulfillmentPlacesTest.java +++ b/retail/interactive-tutorials/src/test/java/product/AddFulfillmentPlacesTest.java @@ -42,6 +42,7 @@ public class AddFulfillmentPlacesTest { @Before public void setUp() throws IOException, InterruptedException, ExecutionException { + // TODO(developer): Replace these variables before running the sample. String projectId = ServiceOptions.getDefaultProjectId(); String generatedProductId = UUID.randomUUID().toString(); String productName = @@ -64,7 +65,7 @@ public void testAddFulfillment() { String outputResult = bout.toString(); assertThat(outputResult).contains("Add fulfilment places with current date"); - assertThat(outputResult).contains("Add fulfillment places, wait 30 seconds"); + assertThat(outputResult).contains("Add fulfillment places, wait 45 seconds"); } @After