Skip to content

Commit 97a11fe

Browse files
committed
ci failing : fixed issue
com.parse.ParseCorePluginsTest > testQueryControllerDefaultImpl FAILED
1 parent d55fa89 commit 97a11fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

parse/src/test/java/com/parse/ParseCorePluginsTest.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ public void setUp() throws Exception {
3333
@Test
3434
public void testQueryControllerDefaultImpl() {
3535
ParseQueryController controller = ParseCorePlugins.getInstance().getQueryController();
36-
assertThat(controller, instanceOf(CacheQueryController.class));
36+
Class<?> clz;
37+
// Check for offline access of Parse.
38+
if (Parse.isLocalDatastoreEnabled()) {
39+
clz = ParseQueryController.class;
40+
} else {
41+
clz = OfflineQueryController.class;
42+
}
43+
org.hamcrest.MatcherAssert.assertThat(controller, instanceOf(clz));
3744
}
3845

3946
@Test

0 commit comments

Comments
 (0)