Skip to content

Commit

Permalink
SNOW-893834 fixes after CR, enabling ARROW tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dstempniak committed Nov 7, 2023
1 parent a737045 commit 6260a69
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Snowflake.Data.Tests/IntegrationTests/SFDbDataReaderIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@

namespace Snowflake.Data.Tests.IntegrationTests
{
// TODO: enable tests for Arrow
//[TestFixture(ResultFormat.ARROW)]
[TestFixture(ResultFormat.ARROW)]
[TestFixture(ResultFormat.JSON)]
class SFDbDataReaderIT : SFBaseTest
{
Expand Down Expand Up @@ -201,7 +200,6 @@ public void TestDateOutputFormat()
IDataReader reader = cmd.ExecuteReader();

ValidateResultFormat(reader);

Assert.IsTrue(reader.Read());
Assert.AreEqual("05/17/2013", reader.GetString(0));

Expand Down Expand Up @@ -637,12 +635,11 @@ public void TestGetByte()
// Act
using (IDataReader reader = cmd.ExecuteReader())
{
ValidateResultFormat(reader);

int index = 0;
while (reader.Read())
{
// Assert
ValidateResultFormat(reader);
Assert.AreEqual(testBytes[index++], reader.GetByte(0));
}
}
Expand Down Expand Up @@ -815,9 +812,8 @@ public void TestGetChar()
// Act
using (IDataReader reader = cmd.ExecuteReader())
{
ValidateResultFormat(reader);

// Assert
ValidateResultFormat(reader);
Assert.IsTrue(reader.Read());
Assert.AreEqual(testChar, reader.GetChar(0));
}
Expand Down Expand Up @@ -1003,9 +999,8 @@ public void TestGetDataTypeName()
// Act
using (DbDataReader reader = (DbDataReader)cmd.ExecuteReader())
{
ValidateResultFormat(reader);

// Assert
ValidateResultFormat(reader);
Assert.IsTrue(reader.Read());
Assert.AreEqual("TEXT", reader.GetDataTypeName(0));
Assert.AreEqual("BINARY", reader.GetDataTypeName(1));
Expand Down

0 comments on commit 6260a69

Please sign in to comment.