mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Ensure no async void methods
Added self tests to find async void methods. It found some cases where we passed an async lambda to a method that did not accept Action<Task> or Func<Task>. I fixed those tests.
This commit is contained in:
@@ -501,7 +501,7 @@ public class RepositoriesClientTests
|
||||
var repoName = Helper.MakeNameWithTimestamp("repo-to-delete");
|
||||
await github.Repository.Create(new NewRepository { Name = repoName });
|
||||
|
||||
Assert.DoesNotThrow(async () => { await github.Repository.Delete(Helper.UserName, repoName); });
|
||||
await github.Repository.Delete(Helper.UserName, repoName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user