blob: 04b952a55e01ce0a015a49e4c5fc4d46014f794c [file] [log] [blame]
package impl_test
import (
"v.io/v23"
"v.io/v23/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() v23.Shutdown {
var shutdown v23.Shutdown
gctx, shutdown = testutil.InitForTest()
impl.SetGlobalContext(gctx)
return func() {
shutdown()
impl.SetGlobalContext(nil)
gctx = nil
}
}