github.com/youminxue/odin@v0.0.0-20230216022911-c2c8b05d3a41/cmd/root_test.go (about) 1 package cmd_test 2 3 import ( 4 "github.com/youminxue/odin/cmd" 5 "testing" 6 "time" 7 ) 8 9 func TestRootCmd(t *testing.T) { 10 go cmd.GetRootCmd().Run(nil, nil) 11 time.Sleep(2 * time.Second) 12 }