Skip to content

Commit

Permalink
Override configurable intervals/thresholds for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kalinin and Pieter Noordhuis committed Jan 30, 2013
1 parent e3f4040 commit 81321ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/router/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ func (s *RouterSuite) SetUpSuite(c *C) {
// Hardcode the IP to localhost to avoid leaving the machine while running tests
s.Config.Ip = "127.0.0.1"

s.Config.PublishStartMessageInterval = 10 * time.Millisecond
s.Config.PruneStaleDropletsInterval = 10 * time.Millisecond
s.Config.DropletStaleThreshold = 1 * time.Second
s.Config.PublishActiveAppsInterval = 0

s.Config.Status = config.StatusConfig{
Port: statusPort,
User: "user",
Expand Down

0 comments on commit 81321ce

Please sign in to comment.