mirror of https://github.com/docker/docs.git
fix test for GetUsername
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
3ddf09447c
commit
dcd2a34f6f
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue