diff --git a/cobra_test.go b/cobra_test.go
index 4c4e6de1..88dc5f01 100644
--- a/cobra_test.go
+++ b/cobra_test.go
@@ -35,9 +35,11 @@ var cmdTimes = &Command{
 	Use:   "times [string to echo]",
 	Short: "Echo anything to the screen more times",
 	Long:  `an slightly useless command for testing.`,
-	Run: func(cmd *Command, args []string) {
-		tt = args
-	},
+	Run:   timesRunner,
+}
+
+func timesRunner(cmd *Command, args []string) {
+	tt = args
 }
 
 func flagInit() {