Skip to content

Commit e1299ae

Browse files
committed
test: use environment-specific newline
1 parent 8b54d3f commit e1299ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Google.Cloud.EntityFrameworkCore.Spanner.Tests/MigrationTests/MigrationMockServerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public void TestMigrateUsesDdlBatch()
4848
var formattedVersion = $"{version.Major}.{version.Minor}.{version.Build}";
4949
_fixture.SpannerMock.AddOrUpdateStatementResult("SELECT 1", StatementResult.CreateException(MockSpannerService.CreateDatabaseNotFoundException("d1")));
5050
_fixture.SpannerMock.AddOrUpdateStatementResult(
51-
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`)\nVALUES ('''20210309110233_Initial''', '''{formattedVersion}''')",
51+
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`){Environment.NewLine}VALUES ('''20210309110233_Initial''', '''{formattedVersion}''')",
5252
StatementResult.CreateUpdateCount(1)
5353
);
5454
_fixture.SpannerMock.AddOrUpdateStatementResult(
55-
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`)\nVALUES ('''20210830_V2''', '''{formattedVersion}''')",
55+
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`){Environment.NewLine}VALUES ('''20210830_V2''', '''{formattedVersion}''')",
5656
StatementResult.CreateUpdateCount(1)
5757
);
5858
using var db = new MockMigrationSampleDbContext(ConnectionString);
@@ -128,7 +128,7 @@ public async Task TestStartMigrateAsync()
128128
new object[] { "20210309110233_Initial", formattedVersion },
129129
}));
130130
_fixture.SpannerMock.AddOrUpdateStatementResult(
131-
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`)\nVALUES ('''20210830_V2''', '''{formattedVersion}''')",
131+
$"INSERT INTO `EFMigrationsHistory` (`MigrationId`, `ProductVersion`){Environment.NewLine}VALUES ('''20210830_V2''', '''{formattedVersion}''')",
132132
StatementResult.CreateUpdateCount(1)
133133
);
134134
await using var db = new MockMigrationSampleDbContext(ConnectionString);

0 commit comments

Comments
 (0)