Skip to content

Commit

Permalink
Increase test timeout from 1s to 10s - eclipse.platform.ui#429
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed May 26, 2023
1 parent 231fb33 commit 2b5b76c
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,17 @@ private static String getStatus(int status) {
}
}

/**
* Blocks the current thread until the first variable is set to the given value.
* Times out after a predefined period of 10sec to avoid hanging tests
*/
public static void waitForStatus(AtomicIntegerArray location, int status) {
doWaitForStatus(location, 0, status, 1000);
doWaitForStatus(location, 0, status, 10000);
}

/**
* Blocks the current thread until the given variable is set to the given
* value Times out after a predefined period to avoid hanging tests
* Blocks the current thread until the given variable is set to the given value.
* Times out after a predefined period of 10sec to avoid hanging tests
*/
public static void waitForStatus(AtomicIntegerArray location, int index, int status) {
doWaitForStatus(location, index, status, 10000);
Expand Down

0 comments on commit 2b5b76c

Please sign in to comment.