Skip to content

Commit

Permalink
Conflict resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Jul 3, 2023
1 parent 85d9122 commit 296284f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/test/java/org/folio/rest/support/ApiTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,4 @@ protected void stubWithEmptyTlrSettings() {
.withConfigs(Collections.<Config>emptyList()))
.encodePrettily())));
}

public static <T> T waitFor(Future<T> future) {
return waitFor(future, 10);
}

@SneakyThrows
public static <T> T waitFor(Future<T> future, int timeoutSeconds) {
return future.toCompletionStage()
.toCompletableFuture()
.get(timeoutSeconds, TimeUnit.SECONDS);
}

protected static void truncateTable(String tableName) {
waitFor(pgClient.delete(tableName, new Criterion()));
}

protected static String randomId() {
return UUID.randomUUID().toString();
}
}

0 comments on commit 296284f

Please sign in to comment.