Skip to content

Commit a7c07d8

Browse files
authored
Merge pull request #6 from iamrare/fix-pull-request-count-test
fix pull request count test
2 parents e9991f4 + 8b0b2ac commit a7c07d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/github_exporter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestGithubExporter(t *testing.T) {
4141
Assert(bodyContains(`github_rate_remaining 60`)).
4242
Assert(bodyContains(`github_rate_reset 1.566853865e+09`)).
4343
Assert(bodyContains(`github_repo_forks{archived="false",fork="false",language="Go",license="mit",private="false",repo="myRepo",user="myOrg"} 10`)).
44-
Assert(bodyContains(`github_repo_pull_request_count 3`)).
44+
Assert(bodyContains(`github_repo_pull_request_count{repo="myRepo"} 3`)).
4545
Assert(bodyContains(`github_repo_open_issues{archived="false",fork="false",language="Go",license="mit",private="false",repo="myRepo",user="myOrg"} 2`)).
4646
Assert(bodyContains(`github_repo_size_kb{archived="false",fork="false",language="Go",license="mit",private="false",repo="myRepo",user="myOrg"} 946`)).
4747
Assert(bodyContains(`github_repo_stars{archived="false",fork="false",language="Go",license="mit",private="false",repo="myRepo",user="myOrg"} 120`)).

0 commit comments

Comments
 (0)