Skip to content

Commit e4a003c

Browse files
author
Caitlin Bales (MSFT)
committed
Get the latest eTag of the task
Also created a new test plan
1 parent 61327af commit e4a003c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/microsoft/graph/functional/PlannerTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class PlannerTests {
4141
private static TestBase testBase;
4242
// For now, you must specify a specific plan ID since the test cannot
4343
// clean up after itself
44-
private static String planId = "ebJ1qqxlQUCwR4Osxm6TzWUAGpq6";
44+
private static String planId = "f1WS2LJ4_k2G-KXzHwH-lGUABSKq";
4545
private static PlannerBucket planBucket;
4646
private static PlannerTask planTask;
4747
private static IPlannerRequestBuilder prb;
@@ -298,6 +298,8 @@ public void testUpdateTaskDueDate() throws InterruptedException {
298298
task.dueDateTime = Calendar.getInstance();
299299

300300
IPlannerTaskRequest req = prb.tasks(planTask.id).buildRequest();
301+
planTask = prb.tasks(planTask.id).buildRequest().get();
302+
301303
req.addHeader("If-Match", getEtag(planTask.getRawObject()));
302304
req.patch(task);
303305

0 commit comments

Comments
 (0)