Skip to content

Commit

Permalink
improved test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed May 11, 2015
1 parent bc2b6d7 commit 72febe0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func TestApplication(t *testing.T) {
})
Convey("Websocket connection", func() {
So(app.clients(), ShouldEqual, 0)
So(app.requestsPerSecond(), ShouldEqual, 0)
s := newWSServer(t, app)
defer s.Close()
ws, _, err := cstDialer.Dial(s.URL+"/facility?test=true", nil)
Expand All @@ -109,8 +110,6 @@ func TestApplication(t *testing.T) {
message := []byte("testmessage")
_, err = conn.Do("select", redisDatabase)
So(err, ShouldBeNil)
So(app.clients(), ShouldEqual, 1)
So(app.requestsPerSecond(), ShouldEqual, 1)
So(currentVersion(), ShouldEqual, version)
So(goroutines(), ShouldNotEqual, 0)
Convey("Send from server", func() {
Expand Down

0 comments on commit 72febe0

Please sign in to comment.