mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
use a different property to get the current username, instead of Credentials
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Octokit.Tests.Integration
|
||||
|
||||
var user = await github.User.Current();
|
||||
|
||||
Assert.Equal(Helper.Credentials.Login, user.Login);
|
||||
Assert.Equal(Helper.UserName, user.Login);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Octokit.Tests.Integration
|
||||
{
|
||||
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = new Credentials(Helper.Credentials.Login, "bad-password")
|
||||
Credentials = new Credentials(Helper.UserName, "bad-password")
|
||||
};
|
||||
var userUpdate = new UserUpdate
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user