|
various: Use Long/ShortWait
I tracked down all the references in our test suite to
time.Milliseconds and updated the references to use testing.ShortWait
and testing.LongWait where appropriate.
This also bumps the default LongWait timeout from 500ms to 1.0s.
The argument is:
1) LongWait is used where it should never actually timeout
2) We've encountered some reliability issues on go-bot, so lets bump
this up a little bit and see if it gives us more security margin.
[Re-proposed to take this forward and land it - rog]
https://code.launchpad.net/~rogpeppe/juju-core/340-jameinel-long-timeouts/+merge/175621
(do not edit description out of merge proposal)
Total comments: 11
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+141 lines, -115 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/publish_test.go
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/status_test.go
|
View
|
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/deploy_test.go
|
View
|
|
3 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cmd/jujud/unit_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/jujud/upgrade_test.go
|
View
|
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
downloader/downloader_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
state/api/watcher/watcher_test.go
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
state/machine_test.go
|
View
|
1
2
|
3 chunks |
+3 lines, -4 lines |
2 comments
|
Download
|
 |
M |
state/presence/presence_test.go
|
View
|
1
2
3
|
6 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
state/relationunit_test.go
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
state/state_test.go
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
state/unit_test.go
|
View
|
1
2
|
3 chunks |
+3 lines, -4 lines |
1 comment
|
Download
|
 |
M |
state/watcher/watcher_test.go
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
store/mgo_test.go
|
View
|
1
2
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
testing/constants.go
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
utils/fslock/fslock_test.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
worker/cleaner/cleaner_test.go
|
View
|
|
2 chunks |
+6 lines, -4 lines |
2 comments
|
Download
|
 |
M |
worker/deployer/deployer_test.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
2 comments
|
Download
|
 |
M |
worker/firewaller/firewaller_test.go
|
View
|
1
2
|
4 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
worker/provisioner/lxc-broker_test.go
|
View
|
1
2
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
worker/provisioner/provisioner_test.go
|
View
|
1
|
6 chunks |
+10 lines, -6 lines |
4 comments
|
Download
|
 |
M |
worker/uniter/charm/charm_test.go
|
View
|
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/jujuc/server_test.go
|
View
|
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relation/hookqueue_test.go
|
View
|
1
|
4 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/relationer_test.go
|
View
|
|
6 chunks |
+17 lines, -13 lines |
0 comments
|
Download
|
 |
M |
worker/uniter/uniter_test.go
|
View
|
1
|
8 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
Total messages: 6
|