github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/workertest/export_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package workertest 5 6 // KillTimeout exists because it's the least unpleasant of the many options that 7 // let us test the package tolerably. Consider: 8 // 9 // * we ought to actually write some tests for the claimed behaviour 10 // * waiting 10s for a test to pass is stupid, we can't test with the default 11 // * using a clock abstraction misses the point: it's all about wall clocks 12 // * nobody's going to bother writing explicit checker config in their tests 13 // 14 // ...and so we convince ourselves that this mutable global state is a tolerable 15 // price to pay given the limited locus of influence. 16 var KillTimeout = &killTimeout