Skip to content

Commit 2cf06d5

Browse files
committed
Remove the unnecessary synchronization method
1 parent f42a6fe commit 2cf06d5

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

core/src/integration-test/java/com/scalar/db/storage/dynamo/DynamoAdminPermissionIntegrationTest.java

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
public class DynamoAdminPermissionIntegrationTest
1515
extends DistributedStorageAdminPermissionIntegrationTestBase {
1616
private static final int SLEEP_BETWEEN_TESTS_SECONDS = 10;
17-
private static final int SLEEP_BETWEEN_RETRIES_SECONDS = 3;
18-
private static final int MAX_RETRY_COUNT = 10;
1917

2018
@Override
2119
protected Properties getProperties(String testName) {
@@ -42,48 +40,6 @@ protected PermissionTestUtils getPermissionTestUtils(String testName) {
4240
return new DynamoPermissionTestUtils(getProperties(testName));
4341
}
4442

45-
@Override
46-
protected void waitForTableCreation() {
47-
try {
48-
AdminTestUtils utils = getAdminTestUtils(TEST_NAME);
49-
int retryCount = 0;
50-
while (retryCount < MAX_RETRY_COUNT) {
51-
if (utils.tableExists(NAMESPACE, TABLE)) {
52-
utils.close();
53-
return;
54-
}
55-
Uninterruptibles.sleepUninterruptibly(
56-
SLEEP_BETWEEN_RETRIES_SECONDS, java.util.concurrent.TimeUnit.SECONDS);
57-
retryCount++;
58-
}
59-
utils.close();
60-
throw new RuntimeException("Table was not created after " + MAX_RETRY_COUNT + " retries");
61-
} catch (Exception e) {
62-
throw new RuntimeException("Failed to wait for table creation", e);
63-
}
64-
}
65-
66-
@Override
67-
protected void waitForTableDeletion() {
68-
try {
69-
AdminTestUtils utils = getAdminTestUtils(TEST_NAME);
70-
int retryCount = 0;
71-
while (retryCount < MAX_RETRY_COUNT) {
72-
if (!utils.tableExists(NAMESPACE, TABLE)) {
73-
utils.close();
74-
return;
75-
}
76-
Uninterruptibles.sleepUninterruptibly(
77-
SLEEP_BETWEEN_RETRIES_SECONDS, java.util.concurrent.TimeUnit.SECONDS);
78-
retryCount++;
79-
}
80-
utils.close();
81-
throw new RuntimeException("Table was not deleted after " + MAX_RETRY_COUNT + " retries");
82-
} catch (Exception e) {
83-
throw new RuntimeException("Failed to wait for table deletion", e);
84-
}
85-
}
86-
8743
@Override
8844
protected void sleepBetweenTests() {
8945
Uninterruptibles.sleepUninterruptibly(SLEEP_BETWEEN_TESTS_SECONDS, TimeUnit.SECONDS);

0 commit comments

Comments
 (0)