Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: logdog/common/storage/bigtable/bigtable_test.go

Issue 2575383002: Add server/cache support to gaeconfig. (Closed)
Patch Set: Un-collapse. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « logdog/client/coordinator/stream.go ('k') | logdog/common/storage/bigtable/storage.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « logdog/client/coordinator/stream.go ('k') | logdog/common/storage/bigtable/storage.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698