| 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" | |
| 12 "github.com/luci/luci-go/common/errors" | 11 "github.com/luci/luci-go/common/errors" |
| 13 "github.com/luci/luci-go/logdog/common/storage" | 12 "github.com/luci/luci-go/logdog/common/storage" |
| 13 |
| 14 "cloud.google.com/go/bigtable" |
| 14 "golang.org/x/net/context" | 15 "golang.org/x/net/context" |
| 15 | 16 |
| 16 . "github.com/smartystreets/goconvey/convey" | 17 . "github.com/smartystreets/goconvey/convey" |
| 17 ) | 18 ) |
| 18 | 19 |
| 19 func TestBigTable(t *testing.T) { | 20 func TestBigTable(t *testing.T) { |
| 20 t.Parallel() | 21 t.Parallel() |
| 21 | 22 |
| 22 Convey(`Testing BigTable internal functions`, t, func() { | 23 Convey(`Testing BigTable internal functions`, t, func() { |
| 23 s := NewMemoryInstance(context.Background(), Options{}) | 24 s := NewMemoryInstance(context.Background(), Options{}) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 69 |
| 69 Convey(`With return an error if the configuration fails
to apply.`, func() { | 70 Convey(`With return an error if the configuration fails
to apply.`, func() { |
| 70 testErr := errors.New("test error") | 71 testErr := errors.New("test error") |
| 71 s.SetErr(testErr) | 72 s.SetErr(testErr) |
| 72 | 73 |
| 73 So(s.Config(cfg), ShouldEqual, testErr) | 74 So(s.Config(cfg), ShouldEqual, testErr) |
| 74 }) | 75 }) |
| 75 }) | 76 }) |
| 76 }) | 77 }) |
| 77 } | 78 } |
| OLD | NEW |