Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Fix integration tests fmts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuhei Kitagawa committed May 31, 2019
1 parent a7bddde commit a8b8cf6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions branches_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestBranchesService_Integration_FindByRepoId(t *testing.T) {
}

if *branch.Name != "master" {
t.Fatalf("unexpected branch returned: want %s: got %s", "master", branch.Name)
t.Fatalf("unexpected branch returned: want %s: got %s", "master", *branch.Name)
}

if *branch.Repository.Id != integrationRepoId {
Expand All @@ -54,11 +54,11 @@ func TestBranchesService_Integration_FindByRepoSlug(t *testing.T) {
}

if *branch.Name != "master" {
t.Fatalf("unexpected branch returned: want %s: got %s", "master", branch.Name)
t.Fatalf("unexpected branch returned: want %s: got %s", "master", *branch.Name)
}

if *branch.Repository.Slug != integrationRepoSlug {
t.Fatalf("unexpected branch returned: want %s: got %s", integrationRepoSlug, branch.Repository.Slug)
t.Fatalf("unexpected branch returned: want %s: got %s", integrationRepoSlug, *branch.Repository.Slug)
}

if branch.Repository == nil {
Expand Down
4 changes: 2 additions & 2 deletions env_vars_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestEnvVarsService_Integration_FindByRepoId(t *testing.T) {
}

if *envVar.Id != integrationEnvVarId {
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, envVar.Id)
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, *envVar.Id)
}
}

Expand All @@ -44,7 +44,7 @@ func TestEnvVarsService_Integration_FindByRepoSlug(t *testing.T) {
}

if *envVar.Id != integrationEnvVarId {
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, envVar.Id)
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, *envVar.Id)
}
}

Expand Down
4 changes: 2 additions & 2 deletions owners_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestOwnerService_Integration_FindByLogin(t *testing.T) {
}

if *owner.Login != integrationGitHubOwner {
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, owner.Login)
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, *owner.Login)
}

if len(owner.Repositories) == 0 {
Expand All @@ -51,6 +51,6 @@ func TestOwnerService_Integration_FindByGitHubId(t *testing.T) {
}

if *owner.GitHubId != integrationGitHubOwnerId {
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, owner.Login)
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, *owner.Login)
}
}
8 changes: 4 additions & 4 deletions repositories_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestRepositoriesService_Integration_Activation(t *testing.T) {
}

if *repo.Slug != integrationRepoSlug {
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, repo.Slug)
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, *repo.Slug)
}

repo, res, err = integrationClient.Repositories.Activate(context.TODO(), integrationRepoSlug)
Expand All @@ -111,7 +111,7 @@ func TestRepositoriesService_Integration_Activation(t *testing.T) {
}

if *repo.Slug != integrationRepoSlug {
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, repo.Slug)
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, *repo.Slug)
}
}

Expand All @@ -136,7 +136,7 @@ func TestRepositoriesService_Integration_Star(t *testing.T) {
}

if *repo.Slug != integrationRepoSlug {
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, repo.Slug)
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, *repo.Slug)
}

repo, res, err = integrationClient.Repositories.Unstar(context.TODO(), integrationRepoSlug)
Expand All @@ -150,6 +150,6 @@ func TestRepositoriesService_Integration_Star(t *testing.T) {
}

if *repo.Slug != integrationRepoSlug {
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, repo.Slug)
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, *repo.Slug)
}
}

0 comments on commit a8b8cf6

Please sign in to comment.