summaryrefslogtreecommitdiffstats
path: root/modules/user/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user_test.go')
-rw-r--r--modules/user/user_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user_test.go b/modules/user/user_test.go
index ae7460281f..fadcbde7bf 100644
--- a/modules/user/user_test.go
+++ b/modules/user/user_test.go
@@ -13,7 +13,7 @@ func getWhoamiOutput() (string, error) {
if err != nil {
return "", err
}
- return strings.TrimSpace(string(output[:])), nil
+ return strings.TrimSpace(string(output)), nil
}
func TestCurrentUsername(t *testing.T) {