mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
Fix review suggestions
Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
This commit is contained in:
@ -13,7 +13,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
linguistURL = "https://github.com/github/linguist.git"
|
||||
linguistURL = "https://github.com/github/linguist.git"
|
||||
linguistClonedEnvVar = "ENRY_TEST_REPO"
|
||||
commit = "d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68"
|
||||
samplesDir = "samples"
|
||||
languagesFile = "lib/linguist/languages.yml"
|
||||
@ -89,8 +90,8 @@ func TestGeneratorTestSuite(t *testing.T) {
|
||||
|
||||
func (s *GeneratorTestSuite) SetupSuite() {
|
||||
var err error
|
||||
s.tmpLinguist = os.Getenv("ENRY_TEST_REPO")
|
||||
s.cloned = len(s.tmpLinguist) == 0
|
||||
s.tmpLinguist = os.Getenv(linguistClonedEnvVar)
|
||||
s.cloned = s.tmpLinguist == ""
|
||||
if s.cloned {
|
||||
s.tmpLinguist, err = ioutil.TempDir("", "linguist-")
|
||||
assert.NoError(s.T(), err)
|
||||
|
Reference in New Issue
Block a user