Skip to content

Commit

Permalink
Linux: robuster test timing
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Aug 18, 2024
1 parent cc2ac04 commit 0c8e5f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void resetBuffers() {
static void drainData(int endpointNumber) {
while (true) {
try {
testDevice.transferIn(endpointNumber, 1);
testDevice.transferIn(endpointNumber, 2);
} catch (UsbTimeoutException e) {
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class TimeoutTest extends TestDeviceBase {

@Test
@Timeout(value = 1, unit = TimeUnit.SECONDS)
@Timeout(value = 2, unit = TimeUnit.SECONDS)
void bulkTransferIn_timesOut() {
var endpointIn = config.endpointLoopbackIn();
assertThrows(UsbTimeoutException.class, () -> testDevice.transferIn(endpointIn, 200));
Expand Down

0 comments on commit 0c8e5f2

Please sign in to comment.