fix test for GetUsername

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-01-31 16:13:26 -05:00
parent 3ddf09447c
commit dcd2a34f6f
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ func TestCopyFile(t *testing.T) {
func TestGetUsername(t *testing.T) {
currentUser := "unknown"
switch runtime.GOOS {
case "darwin,linux":
case "darwin", "linux":
currentUser = os.Getenv("USER")
case "windows":
currentUser = os.Getenv("USERNAME")