Skip to content

Commit

Permalink
HHH-14725 Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 authored and beikov committed Dec 18, 2024
1 parent 0b61cc3 commit 103b2f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.hamcrest.Matchers;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.dialect.SybaseDialect;
import org.hibernate.engine.jdbc.BlobProxy;
import org.hibernate.envers.Audited;
import org.hibernate.orm.test.envers.BaseEnversJPAFunctionalTestCase;
Expand Down Expand Up @@ -81,6 +82,8 @@ public void testGenerateProxyNoStream() {
comment = "The driver closes the stream, so it cannot be reused by envers")
@SkipForDialect(value = SQLServerDialect.class,
comment = "The driver closes the stream, so it cannot be reused by envers")
@SkipForDialect(value = SybaseDialect.class,
comment = "The driver closes the stream, so it cannot be reused by envers")
public void testGenerateProxyStream() {
final Path path = Path.of( Thread.currentThread().getContextClassLoader()
.getResource( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).getPath() );
Expand All @@ -105,7 +108,7 @@ public void testGenerateProxyStream() {
// H2, MySQL, Oracle, SQL Server work this way.
//
//
Blob blob = BlobProxy.generateProxy( stream, 9192L );
Blob blob = BlobProxy.generateProxy( stream, 1431 );

asset.setData( blob );
entityManager.persist( asset );
Expand Down

0 comments on commit 103b2f8

Please sign in to comment.