blob: b409f0b090b4a649fc297b772e91d7311be22455 [file] [log] [blame]
Jiri Simsad7616c92015-03-24 23:44:30 -07001// Copyright 2015 The Vanadium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Matt Rosencrantz19329122015-01-23 22:18:49 -08005package fake_test
6
7import (
8 "testing"
9
Jiri Simsa6ac95222015-02-23 16:11:49 -080010 "v.io/v23"
Matt Rosencrantz19329122015-01-23 22:18:49 -080011
Jiri Simsaffceefa2015-02-28 11:03:34 -080012 _ "v.io/x/ref/profiles/fake"
Matt Rosencrantz19329122015-01-23 22:18:49 -080013)
14
15// Ensure that the fake profile can be used to initialize a fake runtime.
16func TestInit(t *testing.T) {
Jiri Simsa6ac95222015-02-23 16:11:49 -080017 ctx, shutdown := v23.Init()
Matt Rosencrantz19329122015-01-23 22:18:49 -080018 defer shutdown()
19
20 if !ctx.Initialized() {
21 t.Errorf("Got uninitialized context from Init.")
22 }
23}