From c12cda44c495239f60675636fdbf8b6dfa668b4b Mon Sep 17 00:00:00 2001 From: korlov42 Date: Wed, 6 Nov 2019 15:46:25 +0300 Subject: [PATCH] GG-25598 Validation problem inside AbstractDefaultSchemaTest --- .../processors/query/AbstractDefaultSchemaTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/AbstractDefaultSchemaTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/AbstractDefaultSchemaTest.java index b5287434c2749..f395c98f491b5 100644 --- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/AbstractDefaultSchemaTest.java +++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/AbstractDefaultSchemaTest.java @@ -26,6 +26,7 @@ import org.apache.ignite.internal.processors.cache.index.AbstractIndexingCommonTest; import org.apache.ignite.testframework.GridTestUtils; import org.jetbrains.annotations.Nullable; +import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -111,10 +112,10 @@ private void executeStmtsAndVerify(Supplier withSchemaDecisionSup) { sql("SELECT * FROM " + tableName(withSchemaDecisionSup.get()), res -> oneRowList(1, 5).equals(res)); sql("DELETE FROM " + tableName(withSchemaDecisionSup.get()) + " WHERE id = 1"); - sql("SELECT COUNT(*) FROM " + tableName(withSchemaDecisionSup.get()), res -> oneRowList(0).equals(res)); + sql("SELECT COUNT(*) FROM " + tableName(withSchemaDecisionSup.get()), res -> oneRowList(0L).equals(res)); sql("SELECT COUNT(*) FROM " + QueryUtils.SCHEMA_SYS + ".TABLES WHERE schema_name = 'PUBLIC' " + - "AND table_name = \'" + TBL_NAME + "\'", res -> oneRowList(1).equals(res)); + "AND table_name = \'" + TBL_NAME + "\'", res -> oneRowList(1L).equals(res)); sql("DROP TABLE " + tableName(withSchemaDecisionSup.get())); } @@ -134,6 +135,6 @@ protected void sql(String qry, @Nullable Predicate>> validator) { List> res = execSql(qry); if (validator != null) - validator.test(res); + Assert.assertTrue(validator.test(res)); } }