Skip to content

Commit

Permalink
Try a longer test timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 3, 2024
1 parent f0ea127 commit 26e5819
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public final class LControllerTest
private static final Logger LOG =
LoggerFactory.getLogger(LControllerTest.class);

private static final long TIMEOUT = 10L;

private LController controller;
private ArrayList<SStructuredErrorType<?>> errors;

Expand Down Expand Up @@ -97,7 +99,7 @@ public void testOpen(
this.controller.fileStatus().getValue()
);

this.controller.open(file).get(5L, TimeUnit.SECONDS);
this.controller.open(file).get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand All @@ -119,7 +121,7 @@ public void testOpenFails0(
);

assertThrows(Exception.class, () -> {
this.controller.open(file).get(5L, TimeUnit.SECONDS);
this.controller.open(file).get(TIMEOUT, TimeUnit.SECONDS);
});

assertInstanceOf(
Expand All @@ -140,7 +142,7 @@ public void testOpenFails1(

assertThrows(Exception.class, () -> {
this.controller.open(directory.resolve("nonexistent"))
.get(5L, TimeUnit.SECONDS);
.get(TIMEOUT, TimeUnit.SECONDS);
});

assertInstanceOf(
Expand All @@ -162,7 +164,7 @@ public void testOpenSaveWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.open(file).get(5L, TimeUnit.SECONDS);
this.controller.open(file).get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand All @@ -176,7 +178,7 @@ public void testOpenSaveWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.save().get(5L, TimeUnit.SECONDS);
this.controller.save().get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand Down Expand Up @@ -211,7 +213,7 @@ public void testNewSaveWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.save().get(5L, TimeUnit.SECONDS);
this.controller.save().get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand Down Expand Up @@ -260,7 +262,7 @@ public void testNewUndoWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.save().get(5L, TimeUnit.SECONDS);
this.controller.save().get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand Down Expand Up @@ -290,7 +292,7 @@ public void testNewImageAddWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.imagesAdd(List.of(imageFile)).get(5L, TimeUnit.SECONDS);
this.controller.imagesAdd(List.of(imageFile)).get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Unsaved.class,
Expand All @@ -311,7 +313,7 @@ public void testNewImageAddWorkflow(
this.controller.fileStatus().getValue()
);

this.controller.save().get(5L, TimeUnit.SECONDS);
this.controller.save().get(TIMEOUT, TimeUnit.SECONDS);

assertInstanceOf(
LModelFileStatusType.Saved.class,
Expand Down Expand Up @@ -344,7 +346,7 @@ public void testNewSaveFails(
);

assertThrows(Exception.class, () -> {
this.controller.save().get(5L, TimeUnit.SECONDS);
this.controller.save().get(TIMEOUT, TimeUnit.SECONDS);
});

assertInstanceOf(
Expand Down

0 comments on commit 26e5819

Please sign in to comment.