Skip to content

Commit

Permalink
modified: funcs_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Jul 26, 2016
1 parent 13dfaeb commit 9309d7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions funcs_test.go
Expand Up @@ -183,6 +183,11 @@ func TestGetEnv(t *testing.T) {
if err != nil {
t.Error(err)
}
e3 := []byte("abcABC-123")
err = ioutil.WriteFile(filepath.Join(dir, "GITHUB_TOKEN"), e3, 0644)
if err != nil {
t.Error(err)
}
env, err := GetEnv(dir)
if err != nil {
t.Error(err)
Expand All @@ -193,6 +198,7 @@ func TestGetEnv(t *testing.T) {
}{
{"foo", "bar"},
{"PING", "PONG"},
{"GITHUB_TOKEN", "abcABC-123"},
}
for _, tt := range envTest {
if env[tt.key] != tt.expected {
Expand Down

0 comments on commit 9309d7f

Please sign in to comment.