We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca09e3 commit cafe137Copy full SHA for cafe137
1 file changed
tests/Testing.Databases.SqlServer.SqlCmd.Tests/SqlCmdDatabaseInitializerTest.cs
@@ -90,7 +90,7 @@ public async Task Test1Async()
90
this.initializer.IsInitialized.Should().BeTrue();
91
92
var currentUser = await this.database.ExecuteQueryAsync("SELECT SUSER_NAME()");
93
- currentUser.Rows[0][0].Should().Be($"{Environment.UserDomainName}\\{Environment.UserName}");
+ currentUser.Rows[0][0].Should().Be(ConnectionStrings.ExtractUserName(ConnectionString));
94
95
// Check the constructor has been called
96
var table = await this.database.ExecuteQueryAsync("SELECT * FROM MyTable");
0 commit comments