OLD | NEW |
1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package bigtable | 5 package bigtable |
6 | 6 |
7 import ( | 7 import ( |
8 "testing" | 8 "testing" |
9 "time" | 9 "time" |
10 | 10 |
| 11 "cloud.google.com/go/bigtable" |
11 "github.com/luci/luci-go/common/errors" | 12 "github.com/luci/luci-go/common/errors" |
12 "github.com/luci/luci-go/logdog/common/storage" | 13 "github.com/luci/luci-go/logdog/common/storage" |
13 "golang.org/x/net/context" | 14 "golang.org/x/net/context" |
14 "google.golang.org/cloud/bigtable" | |
15 | 15 |
16 . "github.com/smartystreets/goconvey/convey" | 16 . "github.com/smartystreets/goconvey/convey" |
17 ) | 17 ) |
18 | 18 |
19 func TestBigTable(t *testing.T) { | 19 func TestBigTable(t *testing.T) { |
20 t.Parallel() | 20 t.Parallel() |
21 | 21 |
22 Convey(`Testing BigTable internal functions`, t, func() { | 22 Convey(`Testing BigTable internal functions`, t, func() { |
23 var bt btTableTest | 23 var bt btTableTest |
24 defer bt.close() | 24 defer bt.close() |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 }) | 76 }) |
77 | 77 |
78 Convey(`With return an error if the configuration fails
to apply.`, func() { | 78 Convey(`With return an error if the configuration fails
to apply.`, func() { |
79 bt.err = errors.New("test error") | 79 bt.err = errors.New("test error") |
80 | 80 |
81 So(s.Config(cfg), ShouldEqual, bt.err) | 81 So(s.Config(cfg), ShouldEqual, bt.err) |
82 }) | 82 }) |
83 }) | 83 }) |
84 }) | 84 }) |
85 } | 85 } |
OLD | NEW |