Skip to content

Commit

Permalink
Disable GetSchema test on Win7 (dotnet/corefx#37450)
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/corefx@f5c963f
  • Loading branch information
ViktorHofer authored and stephentoub committed May 6, 2019
1 parent ae741c7 commit a87da6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libraries/System.Data.OleDb/tests/OleDbConnectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ public void Provider_SetProperlyFromCtor()
[InlineData(nameof(DbMetaDataCollectionNames.DataTypes), "TypeName")]
public void GetSchema(string tableName, string columnName)
{
if (PlatformDetection.IsWindows7)
{
return; // [ActiveIssue(37438)]
}

DataTable schema = connection.GetSchema(tableName);
Assert.True(schema != null && schema.Rows.Count > 0);
var exception = Record.Exception(() => schema.Rows[0].Field<string>(columnName));
Expand Down

0 comments on commit a87da6c

Please sign in to comment.