From 371e957eee01c9f45d38f22a042f90cd400d4e61 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Fri, 20 Sep 2019 15:12:49 +0900 Subject: [PATCH] Fix test --- ci_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci_test.go b/ci_test.go index 0700a3d..a5c77c3 100644 --- a/ci_test.go +++ b/ci_test.go @@ -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{ @@ -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{ @@ -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) }