Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Sep 20, 2019
1 parent 46dd1e5 commit 371e957
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ func TestTeamCityCI(t *testing.T) {
}{
{
fn: func() {
os.Setenv("BUILD_NUMBER", "123")
os.Setenv("BUILD_VCS_NUMBER", "fafef5adb5b9c39244027c8f16f7c3aa7e352b2e")
os.Setenv("BUILD_NUMBER", "123")
},
ci: CI{
PR: PullRequest{
Expand All @@ -248,8 +248,8 @@ func TestTeamCityCI(t *testing.T) {
},
{
fn: func() {
os.Setenv("BUILD_NUMBER", "abcdefg")
os.Setenv("BUILD_VCS_NUMBER", "false")
os.Setenv("BUILD_VCS_NUMBER", "abcdefg")
os.Setenv("BUILD_NUMBER", "false")
},
ci: CI{
PR: PullRequest{
Expand All @@ -264,7 +264,7 @@ func TestTeamCityCI(t *testing.T) {

for _, testCase := range testCases {
testCase.fn()
ci, err := travisci()
ci, err := teamcity()
if !reflect.DeepEqual(ci, testCase.ci) {
t.Errorf("got %q but want %q", ci, testCase.ci)
}
Expand Down

0 comments on commit 371e957

Please sign in to comment.