Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#576] test: increase timeout and remove initialization time in storage strategy tests #646

Merged
merged 1 commit into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,14 @@ public void selectStorageTest() throws Exception {
}

@Test
@Timeout(20)
@Timeout(30)
public void storageCounterMulThreadTest() throws Exception {
String remoteStoragePath = remotePath1 + Constants.COMMA_SPLIT_CHAR + remotePath2
+ Constants.COMMA_SPLIT_CHAR + remotePath3;
applicationManager.refreshRemoteStorage(remoteStoragePath, "");
applicationManager.getSelectStorageStrategy().detectStorage();
CountDownLatch cdl = new CountDownLatch(3);
String testApp1 = "application_testAppId";
// init detectStorageScheduler
Thread.sleep(2000);
Thread pickThread1 = new Thread(() -> {
for (int i = 0; i < 1000; i++) {
String appId = testApp1 + i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,14 @@ public void selectStorageTest() throws Exception {
}

@Test
@Timeout(20)
@Timeout(30)
public void selectStorageMulThreadTest() throws Exception {
String remoteStoragePath = remoteStorage1 + Constants.COMMA_SPLIT_CHAR + remoteStorage2
+ Constants.COMMA_SPLIT_CHAR + remoteStorage3;
applicationManager.refreshRemoteStorage(remoteStoragePath, "");
applicationManager.getSelectStorageStrategy().detectStorage();
CountDownLatch cdl = new CountDownLatch(3);
String testApp1 = "application_testAppId";
// init detectStorageScheduler
Thread.sleep(2000);
Thread pickThread1 = new Thread(() -> {
for (int i = 0; i < 1000; i++) {
String appId = testApp1 + i;
Expand Down