Skip to content

Commit

Permalink
Merge pull request #1190 from grunzwei/master
Browse files Browse the repository at this point in the history
fix github tests to use the provided GITHUB_ORG environment variable
  • Loading branch information
vishalnayak committed Mar 9, 2016
2 parents c272799 + 3a98f99 commit fd70763
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/credential/github/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ func TestBackend_Config(t *testing.T) {
"token": os.Getenv("GITHUB_TOKEN"),
}
config_data1 := map[string]interface{}{
"organization": "hashicorp",
"organization": os.Getenv("GITHUB_ORG"),
"ttl": "",
"max_ttl": "",
}
expectedTTL1, _ := time.ParseDuration("24h0m0s")
config_data2 := map[string]interface{}{
"organization": "hashicorp",
"organization": os.Getenv("GITHUB_ORG"),
"ttl": "1h",
"max_ttl": "2h",
}
expectedTTL2, _ := time.ParseDuration("1h0m0s")
config_data3 := map[string]interface{}{
"organization": "hashicorp",
"organization": os.Getenv("GITHUB_ORG"),
"ttl": "50h",
"max_ttl": "50h",
}
Expand Down

0 comments on commit fd70763

Please sign in to comment.