projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20888: Applies suggested improvements.
[arvados.git]
/
lib
/
dispatchcloud
/
dispatcher_test.go
diff --git
a/lib/dispatchcloud/dispatcher_test.go
b/lib/dispatchcloud/dispatcher_test.go
index 17121ffeb60d65a6871cbc631310402d80136747..a981d83a26c8aae993660413b97f088ec3fdb9b8 100644
(file)
--- a/
lib/dispatchcloud/dispatcher_test.go
+++ b/
lib/dispatchcloud/dispatcher_test.go
@@
-49,8
+49,10
@@
func (s *DispatcherSuite) SetUpTest(c *check.C) {
s.stubDriver = &test.StubDriver{
HostKey: hostpriv,
AuthorizedKeys: []ssh.PublicKey{dispatchpub},
s.stubDriver = &test.StubDriver{
HostKey: hostpriv,
AuthorizedKeys: []ssh.PublicKey{dispatchpub},
+ ErrorRateCreate: 0.1,
ErrorRateDestroy: 0.1,
MinTimeBetweenCreateCalls: time.Millisecond,
ErrorRateDestroy: 0.1,
MinTimeBetweenCreateCalls: time.Millisecond,
+ QuotaMaxInstances: 10,
}
// We need the postgresql connection info from the integration
}
// We need the postgresql connection info from the integration
@@
-366,6
+368,7
@@
func (s *DispatcherSuite) TestInstancesAPI(c *check.C) {
sr := getInstances()
c.Check(len(sr.Items), check.Equals, 0)
sr := getInstances()
c.Check(len(sr.Items), check.Equals, 0)
+ s.stubDriver.ErrorRateCreate = 0
ch := s.disp.pool.Subscribe()
defer s.disp.pool.Unsubscribe(ch)
ok := s.disp.pool.Create(test.InstanceType(1))
ch := s.disp.pool.Subscribe()
defer s.disp.pool.Unsubscribe(ch)
ok := s.disp.pool.Create(test.InstanceType(1))