Gitlab Community Edition Instance

Commit abf5dccb authored by mhellka's avatar mhellka
Browse files

Fixed time-critical test case

The workaround is not ideal, but works for now.
parent f1f5d2cd
Pipeline #115722 passed with stages
in 11 minutes and 9 seconds
......@@ -8,6 +8,7 @@ import javax.ws.rs.core.Response.Status;
import org.junit.Test;
import de.gwdg.cdstar.Utils;
import de.gwdg.cdstar.rest.BaseRestTest;
import de.gwdg.cdstar.runtime.client.CDStarSession;
......@@ -73,6 +74,9 @@ public class ExplicitTransactionTest extends BaseRestTest {
target("/v3/_tx/", tx).request().delete();
assertStatus(Status.NO_CONTENT);
// TODO: Retry until rollback thread was able to run
Utils.sleepInterruptable(100);
target("/v3/_tx/", tx).queryParam("renew", "true").request().get();
assertStatus(Status.NOT_FOUND);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment