blob: a369b949ab9d2aba0c10d6426327979daf173ed9 [file] [log] [blame]
package impl_test
import (
"v.io/core/veyron2"
"v.io/core/veyron2/context"
"v.io/core/veyron/lib/testutil"
_ "v.io/core/veyron/profiles"
"v.io/core/veyron/tools/mgmt/device/impl"
)
var gctx *context.T
func initTest() veyron2.Shutdown {
var shutdown veyron2.Shutdown
gctx, shutdown = testutil.InitForTest()
impl.SetGlobalContext(gctx)
return func() {
shutdown()
impl.SetGlobalContext(nil)
gctx = nil
}
}