Merge lp:~niemeyer/juju-core/state-cut-test-timing into lp:~juju/juju-core/trunk
Proposed by
Gustavo Niemeyer
Status: | Merged |
---|---|
Merged at revision: | 542 |
Proposed branch: | lp:~niemeyer/juju-core/state-cut-test-timing |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
34 lines (+3/-3) 2 files modified
state/relation_test.go (+1/-1) state/ssh_test.go (+2/-2) |
To merge this branch: | bzr merge lp:~niemeyer/juju-core/state-cut-test-timing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Go Language Gophers | Pending | ||
Review via email: mp+125512@code.launchpad.net |
Description of the change
state: get a few seconds back from tests
Tests are back to 20+ seconds. Cut down new negative
path delays to buy a few seconds back.
To post a comment you must log in.
Reviewers: mp+125512_ code.launchpad. net,
Message:
Please take a look.
Description:
state: get a few seconds back from tests
Tests are back to 20+ seconds. Cut down new negative
path delays to buy a few seconds back.
https:/ /code.launchpad .net/~niemeyer/ juju-core/ state-cut- test-timing/ +merge/ 125512
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6549044/
Affected files: test.go
A [revision details]
M state/relation_
M state/ssh_test.go
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: state/relation_ test.go relation_ test.go' test.go 2012-09-20 11:08:11 +0000 test.go 2012-09-20 15:34:42 +0000
=== modified file 'state/
--- state/relation_
+++ state/relation_
@@ -474,7 +474,7 @@
select {
case ch, ok := <-w.Changes():
c.Fatalf("got unwanted change: %#v, %t", ch, ok)
- case <-time.After(100 * time.Millisecond):
+ case <-time.After(50 * time.Millisecond):
}
}
}
Index: state/ssh_test.go
=== modified file 'state/ssh_test.go'
--- state/ssh_test.go 2012-09-19 14:14:33 +0000
+++ state/ssh_test.go 2012-09-20 15:34:42 +0000
@@ -243,7 +243,7 @@
// The SSH forwarder will have tried to start the SSH
// client, but it will fail because there's no daemon to
// connect to. Wait a while to allow this to happen.
- time.Sleep(500 * time.Millisecond)
+ time.Sleep(200 * time.Millisecond)
// Start the daemon and the client. "------ --- starting sshd")
c.Logf(
@@ -257,7 +257,7 @@
// The SSH client process should now successfully start,
// but the client will fail to connect because the server
// has not been started. Wait a while for this to happen.
- time.Sleep(2000 * time.Millisecond)
+ time.Sleep(1 * time.Second)
// Start the server to finally allow the full connection
// to take place.