Skip to content

Commit

Permalink
Add missing @Test annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Nov 12, 2023
1 parent 6d1ed93 commit b7bfd49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.trino.testing.BaseFailureRecoveryTest;
import io.trino.testing.QueryRunner;
import io.trino.tpch.TpchTable;
import org.junit.jupiter.api.Test;

import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -53,54 +54,62 @@ protected QueryRunner createQueryRunner(
});
}

@Test
@Override
protected boolean areWriteRetriesSupported()
{
return true;
}

@Test
@Override
protected void testAnalyzeTable()
{
// This connector does not support analyze
abort("skipped");
}

@Test
@Override
protected void testDelete()
{
// This connector does not support modifying table rows
abort("skipped");
}

@Test
@Override
protected void testDeleteWithSubquery()
{
// This connector does not support modifying table rows
abort("skipped");
}

@Test
@Override
protected void testMerge()
{
// This connector does not support modifying table rows
abort("skipped");
}

@Test
@Override
protected void testRefreshMaterializedView()
{
// This connector does not support creating materialized views
abort("skipped");
}

@Test
@Override
protected void testUpdate()
{
// This connector does not support modifying table rows
abort("skipped");
}

@Test
@Override
protected void testUpdateWithSubquery()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.trino.plugin.jdbc.BaseJdbcFailureRecoveryTest;
import io.trino.testing.QueryRunner;
import io.trino.tpch.TpchTable;
import org.junit.jupiter.api.Test;

import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -55,13 +56,15 @@ protected QueryRunner createQueryRunner(
});
}

@Test
@Override
protected void testUpdateWithSubquery()
{
assertThatThrownBy(super::testUpdateWithSubquery).hasMessageContaining("Unexpected Join over for-update table scan");
abort("skipped");
}

@Test
@Override
protected void testUpdate()
{
Expand Down

0 comments on commit b7bfd49

Please sign in to comment.