Skip to content

Commit 942d23e

Browse files
committed
test: Avoid ambiguous call between obsolete and new DynamoDB ScanAsync methods
1 parent d8face9 commit 942d23e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/test/NetStandard/IntegrationTests/IntegrationTests/DynamoDB/DataModelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ private async Task TestUnsupportedTypes()
6868
Assert.Equal("Type Amazon.DNXCore.IntegrationTests.DynamoDB.DynamoDBTests+EmptyType is unsupported, it has no supported members", exception.Message);
6969

7070
// Verify that objects that are invalid result in exceptions
71-
exception = await Assert.ThrowsAsync<InvalidOperationException>(() => SharedTestFixture.Context.ScanAsync<TimeSpan>(new List<ScanCondition>(), null).GetNextSetAsync());
71+
exception = await Assert.ThrowsAsync<InvalidOperationException>(() => SharedTestFixture.Context.ScanAsync<TimeSpan>(new List<ScanCondition>()).GetNextSetAsync());
7272
Assert.Equal("Type System.TimeSpan is unsupported, it cannot be instantiated", exception.Message);
7373

74-
exception = await Assert.ThrowsAsync<InvalidOperationException>(() => SharedTestFixture.Context.ScanAsync<EmptyType>(new List<ScanCondition>(), null).GetNextSetAsync());
74+
exception = await Assert.ThrowsAsync<InvalidOperationException>(() => SharedTestFixture.Context.ScanAsync<EmptyType>(new List<ScanCondition>()).GetNextSetAsync());
7575
Assert.Equal("Type Amazon.DNXCore.IntegrationTests.DynamoDB.DynamoDBTests+EmptyType is unsupported, it has no supported members", exception.Message);
7676
}
7777

0 commit comments

Comments
 (0)