Skip to content

Commit

Permalink
Minor touch-up.
Browse files Browse the repository at this point in the history
- `StartMigration()` not considered as a test.
- Creating repo with timestamp for uniqueness.
  • Loading branch information
devkhan committed May 19, 2016
1 parent ac042ee commit dde430f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Octokit.Tests.Integration/Clients/MigrationsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ public MigrationsClientTests()

private async Task CreateTheWorld()
{
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository("migrationtest-repo1")
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository(Helper.MakeNameWithTimestamp("migrationtest-repo1"))
{
GitignoreTemplate = "VisualStudio", LicenseTemplate = "mit"
GitignoreTemplate = "VisualStudio",
LicenseTemplate = "mit"
}));
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository("migrationtest-repo2")
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository(Helper.MakeNameWithTimestamp("migrationtest-repo2"))
{
GitignoreTemplate = "VisualStudio",
LicenseTemplate = "mit"
}));
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository("migrationtest-repo3")
_repos.Add(await _gitHub.CreateRepositoryContext(_orgName, new NewRepository(Helper.MakeNameWithTimestamp("migrationtest-repo3"))
{
GitignoreTemplate = "VisualStudio",
LicenseTemplate = "mit"
}));
}

[IntegrationTest(Skip = "This will be automatically tested as all other tests call it. See: https://gist.github.com/ryangribble/fc14239ecad3f65d96f5ebd2fecf722e#file-octokit-migrationsclienttests-cs-L40")]
public async Task StartNewMigration()
{
var repoNames = _repos.Select(repo => repo.Repository.FullName).ToList();
Expand Down

0 comments on commit dde430f

Please sign in to comment.