Skip to content

Commit cafe137

Browse files
Fix unit tests
1 parent 6ca09e3 commit cafe137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Testing.Databases.SqlServer.SqlCmd.Tests/SqlCmdDatabaseInitializerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task Test1Async()
9090
this.initializer.IsInitialized.Should().BeTrue();
9191

9292
var currentUser = await this.database.ExecuteQueryAsync("SELECT SUSER_NAME()");
93-
currentUser.Rows[0][0].Should().Be($"{Environment.UserDomainName}\\{Environment.UserName}");
93+
currentUser.Rows[0][0].Should().Be(ConnectionStrings.ExtractUserName(ConnectionString));
9494

9595
// Check the constructor has been called
9696
var table = await this.database.ExecuteQueryAsync("SELECT * FROM MyTable");

0 commit comments

Comments
 (0)