Skip to content

Commit e709857

Browse files
committed
Fixed test.
1 parent cc77757 commit e709857

File tree

1 file changed

+3
-3
lines changed
  • tests/Thinktecture.EntityFrameworkCore.SqlServer.Tests/Extensions/QueryableExtensionsTests

1 file changed

+3
-3
lines changed

tests/Thinktecture.EntityFrameworkCore.SqlServer.Tests/Extensions/QueryableExtensionsTests/WithTableHints.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ public async Task Should_work_with_projection_using_SplitQuery_behavior()
193193
});
194194

195195
ExecutedCommands.Skip(ExecutedCommands.Count - 2).First().Should().Be(@"SELECT [t].[Id]" + Environment.NewLine +
196-
"FROM [tests].[TestEntities] AS [t] WITH (UPDLOCK, ROWLOCK)" + Environment.NewLine +
196+
$"FROM [{TestCtxProvider.Schema}].[TestEntities] AS [t] WITH (UPDLOCK, ROWLOCK)" + Environment.NewLine +
197197
"WHERE EXISTS (" + Environment.NewLine +
198198
" SELECT 1" + Environment.NewLine +
199199
" FROM [#TempTable<Guid>_1] AS [#] WITH (UPDLOCK)" + Environment.NewLine +
200200
" WHERE [t].[Id] = [#].[Column1])" + Environment.NewLine +
201201
"ORDER BY [t].[Id]");
202202
ExecutedCommands.Last().Should().Be("SELECT [t0].[Id], [t].[Id]" + Environment.NewLine +
203-
"FROM [tests].[TestEntities] AS [t] WITH (UPDLOCK, ROWLOCK)" + Environment.NewLine +
204-
"INNER JOIN [tests].[TestEntities] AS [t0] ON [t].[Id] = [t0].[ParentId]" + Environment.NewLine +
203+
$"FROM [{TestCtxProvider.Schema}].[TestEntities] AS [t] WITH (UPDLOCK, ROWLOCK)" + Environment.NewLine +
204+
$"INNER JOIN [{TestCtxProvider.Schema}].[TestEntities] AS [t0] ON [t].[Id] = [t0].[ParentId]" + Environment.NewLine +
205205
"WHERE EXISTS (" + Environment.NewLine +
206206
" SELECT 1" + Environment.NewLine +
207207
" FROM [#TempTable<Guid>_1] AS [#] WITH (UPDLOCK)" + Environment.NewLine +

0 commit comments

Comments
 (0)