Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Run test fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Herfray committed Sep 8, 2015
1 parent 480d0eb commit f10d559
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package zest
import (
"os"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand All @@ -25,7 +26,7 @@ func TestCli(t *testing.T) {

a.Equal(cli.Name, "foobar")

zest = Classic() // Should also work with the Classic zest
zest = Classic() // should also work with the Classic zest

r.NotPanics(func() { _ = zest.Cli() })
cli = zest.Cli()
Expand All @@ -41,8 +42,9 @@ func TestCli(t *testing.T) {

// TestRun runs tests on the zest Run method.
func TestRun(t *testing.T) {
os.Args = []string{"zest", "--port", "3001"}
os.Args = []string{"zest"}

// Just test that Run doesn't bomb
go Classic().Run()

time.Sleep(time.Millisecond) // a better way to do this ?
}

0 comments on commit f10d559

Please sign in to comment.