diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-02-26 16:13:42 +0100 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-02-26 16:13:42 +0100 |
commit | 73d21caf21f0ef72f4ed02c9527010867c0a7afd (patch) | |
tree | 8d051c2d50e055ee8a09e9fc8086fba3da3bef6b | |
parent | a4f55c16134cc048f393a9d40de449e22299f5ab (diff) |
Fixed another conflict
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java index 5f47d77fbbe..4a263bf1fbd 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiTest.java @@ -836,14 +836,11 @@ public class ApplicationApiTest extends ControllerContainerTest { assertEquals("Response contains only two items", 2, SlimeUtils.jsonToSlime(response.getBody()).get().entries()); // Check that GET didn't affect the enqueued jobs. - response = container.handleRequest(request("/screwdriver/v1/jobsToRun", DELETE).get()); + response = container.handleRequest(request("/screwdriver/v1/jobsToRun", GET).get()); assertTrue("Response contains system-test", response.getBodyAsString().contains(DeploymentJobs.JobType.systemTest.jobName())); assertTrue("Response contains staging-test", response.getBodyAsString().contains(DeploymentJobs.JobType.stagingTest.jobName())); assertEquals("Response contains only two items", 2, SlimeUtils.jsonToSlime(response.getBody()).get().entries()); - Thread.sleep(50); // ???? - // Check that the *first* DELETE has removed the enqueued jobs. - assertResponse(request("/screwdriver/v1/jobsToRun", DELETE).get(), 200, "[]"); } @Test |