Skip to content

Commit

Permalink
Remove ugly Sleeps, now ZMQ is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Dec 3, 2013
1 parent 631d860 commit 2100658
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions raft/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ func (s *ServerSuite) SetUpTest(c *C) {
s.dbPath = c.MkDir()
}

func (s *ServerSuite) TearDownTest(c *C) {
// give some time ØMQ to clean up
time.Sleep(100 * time.Millisecond)
}

func (s *ServerSuite) TestGetNodeName(c *C) {
name, err := getNodeName(s.dbPath)
c.Assert(err, IsNil)
Expand Down
3 changes: 0 additions & 3 deletions raft/zeromq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"github.com/goraft/raft"
. "launchpad.net/gocheck"
"testing"
"time"
)

// Create new raft test server
Expand Down Expand Up @@ -61,8 +60,6 @@ func (s *ZmqSuite) TearDownTest(c *C) {
if s.transporter2 != nil {
s.transporter2.Shutdown()
}

time.Sleep(100 * time.Millisecond)
}

func (s *ZmqSuite) TestStartTransport(c *C) {
Expand Down

0 comments on commit 2100658

Please sign in to comment.