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

Commit bbda9af

Browse files
authored
Merge pull request #59 from shuheiktgw/fix_integration_tests_fmt
Fix integration tests fmts
2 parents d22ebe8 + a8b8cf6 commit bbda9af

4 files changed

+11
-11
lines changed

branches_integration_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestBranchesService_Integration_FindByRepoId(t *testing.T) {
2828
}
2929

3030
if *branch.Name != "master" {
31-
t.Fatalf("unexpected branch returned: want %s: got %s", "master", branch.Name)
31+
t.Fatalf("unexpected branch returned: want %s: got %s", "master", *branch.Name)
3232
}
3333

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

5656
if *branch.Name != "master" {
57-
t.Fatalf("unexpected branch returned: want %s: got %s", "master", branch.Name)
57+
t.Fatalf("unexpected branch returned: want %s: got %s", "master", *branch.Name)
5858
}
5959

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

6464
if branch.Repository == nil {

env_vars_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestEnvVarsService_Integration_FindByRepoId(t *testing.T) {
2828
}
2929

3030
if *envVar.Id != integrationEnvVarId {
31-
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, envVar.Id)
31+
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, *envVar.Id)
3232
}
3333
}
3434

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

4646
if *envVar.Id != integrationEnvVarId {
47-
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, envVar.Id)
47+
t.Fatalf("unexpected env var id returned: want %s got %s", integrationEnvVarId, *envVar.Id)
4848
}
4949
}
5050

owners_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestOwnerService_Integration_FindByLogin(t *testing.T) {
2626
}
2727

2828
if *owner.Login != integrationGitHubOwner {
29-
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, owner.Login)
29+
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, *owner.Login)
3030
}
3131

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

5353
if *owner.GitHubId != integrationGitHubOwnerId {
54-
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, owner.Login)
54+
t.Fatalf("unexpected owner returned: want %s: got %s", integrationGitHubOwner, *owner.Login)
5555
}
5656
}

repositories_integration_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestRepositoriesService_Integration_Activation(t *testing.T) {
9797
}
9898

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

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

113113
if *repo.Slug != integrationRepoSlug {
114-
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, repo.Slug)
114+
t.Fatalf("unexpected repository returned: want %s: got %s", integrationRepoSlug, *repo.Slug)
115115
}
116116
}
117117

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

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

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

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

0 commit comments

Comments
 (0)