Skip to content

Commit

Permalink
reset directiveId vars in beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
skovati authored and JoelCourtney committed Sep 5, 2024
1 parent 42f9cca commit 77ca4ca
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class SchedulingTests {
private int modelId;
private int planId;
private int schedulingSpecId;
private int directiveId1;
private int directiveId2;

// Cross-Test Constants
private final String planStartTimestamp = "2023-01-01T00:00:00+00:00";
Expand Down Expand Up @@ -130,6 +132,9 @@ void beforeEach() throws IOException, InterruptedException {
"24:00:00",
planStartTimestamp);
schedulingSpecId = hasura.getSchedulingSpecId(planId);
// Unset directiveId vars
directiveId1 = -1;
directiveId2 = -1;
}

@AfterEach
Expand All @@ -139,8 +144,6 @@ void afterEach() throws IOException {
hasura.deleteMissionModel(modelId);
}

private int directiveId1 = -1;
private int directiveId2 = -1;

private void insertActivities() throws IOException {
// Duration argument is specified on one but not the other to verify that the scheduler can pick up on effective args
Expand Down

0 comments on commit 77ca4ca

Please sign in to comment.