Back off overly-aggressive timeout
This commit is contained in:
parent
cbe682a67b
commit
9a6145122d
|
@ -50,7 +50,7 @@ func Test_RegistersWithEnterprise(t *testing.T) {
|
||||||
e := enterprise.NewEnterprise(c, expected, "test", shutdown)
|
e := enterprise.NewEnterprise(c, expected, "test", shutdown)
|
||||||
e.Open()
|
e.Open()
|
||||||
|
|
||||||
timeout := time.After(1 * time.Millisecond)
|
timeout := time.After(1 * time.Second)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-success:
|
case <-success:
|
||||||
|
@ -83,7 +83,7 @@ func Test_StartsAdminInterface(t *testing.T) {
|
||||||
e := enterprise.NewEnterprise(c, hostname, "test", shutdown)
|
e := enterprise.NewEnterprise(c, hostname, "test", shutdown)
|
||||||
e.Open()
|
e.Open()
|
||||||
|
|
||||||
timeout := time.After(1 * time.Millisecond)
|
timeout := time.After(1 * time.Second)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-success:
|
case <-success:
|
||||||
|
@ -116,7 +116,7 @@ func Test_ClosesAdminInterface(t *testing.T) {
|
||||||
e := enterprise.NewEnterprise(c, hostname, "test", shutdown)
|
e := enterprise.NewEnterprise(c, hostname, "test", shutdown)
|
||||||
e.Open()
|
e.Open()
|
||||||
|
|
||||||
timeout := time.After(1 * time.Millisecond)
|
timeout := time.After(1 * time.Second)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-success:
|
case <-success:
|
||||||
|
|
Loading…
Reference in New Issue