Skip to content

Commit

Permalink
Fix a few additional failing calendar tests (deephaven#5046)
Browse files Browse the repository at this point in the history
Failing tests introduced in deephaven#5037
  • Loading branch information
devinrsmith authored Jan 17, 2024
1 parent b99c015 commit bc8ae1d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions engine/table/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dependencies {
testImplementation TestTools.projectDependency(project, 'engine-vector')
testImplementation TestTools.projectDependency(project, 'Numerics')
testImplementation TestTools.projectDependency(project, 'engine-context')
testImplementation TestTools.projectDependency(project, 'engine-time')
testImplementation project(':base-test-utils')
testImplementation project(':engine-rowset-test-utils')
testImplementation project(':engine-test-utils')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
import io.deephaven.engine.util.TableTools;
import io.deephaven.engine.util.GroovyDeephavenSession;
import io.deephaven.test.types.SerialTest;
import io.deephaven.time.calendar.CalendarInit;
import io.deephaven.util.SafeCloseable;
import io.deephaven.util.thread.ThreadInitializationFactory;
import org.jetbrains.annotations.Nullable;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
Expand Down Expand Up @@ -83,6 +85,11 @@ private GroovyDeephavenSession getGroovySession(@Nullable Clock clock) throws IO
return session;
}

@Before
public void setUp() throws Exception {
CalendarInit.init();
}

@Test
public void testFuzzer() throws IOException, InterruptedException {
testFuzzerScriptFile(0, "fuzzertest.groovy", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import io.deephaven.engine.testutil.junit4.EngineCleanup;
import io.deephaven.test.types.OutOfBandTest;
import io.deephaven.time.DateTimeUtils;
import io.deephaven.time.calendar.CalendarInit;
import io.deephaven.time.calendar.StaticCalendarMethods;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
Expand Down Expand Up @@ -114,6 +116,11 @@ private void executeTest(final Method m) throws InvocationTargetException, Illeg
}
}

@Before
public void setUp() throws Exception {
CalendarInit.init();
}

@Test
// test to make sure these methods work inside the query strings
public void testAll() {
Expand Down

0 comments on commit bc8ae1d

Please sign in to comment.