@@ -42,8 +42,8 @@ import (
42
42
func TestStacksOpenCloseStackConfiguration (t * testing.T ) {
43
43
ctx := context .Background ()
44
44
45
- handles := newHandleTable ()
46
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
45
+ handles := NewHandleTable ()
46
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
47
47
48
48
// In normal use a client would have previously opened a source bundle
49
49
// using Dependencies.OpenSourceBundle, so we'll simulate the effect
@@ -81,7 +81,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) {
81
81
// A hypothetical attempt to close the underlying source bundle while
82
82
// the stack configuration is active should fail.
83
83
{
84
- depsServer := newDependenciesServer (handles , disco .New ())
84
+ depsServer := NewDependenciesServer (handles , disco .New ())
85
85
86
86
_ , err := depsServer .CloseSourceBundle (ctx , & dependencies.CloseSourceBundle_Request {
87
87
SourceBundleHandle : sourcesHnd .ForProtobuf (),
@@ -110,7 +110,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) {
110
110
111
111
// Should be able to close the source bundle now too.
112
112
{
113
- depsServer := newDependenciesServer (handles , disco .New ())
113
+ depsServer := NewDependenciesServer (handles , disco .New ())
114
114
115
115
_ , err := depsServer .CloseSourceBundle (ctx , & dependencies.CloseSourceBundle_Request {
116
116
SourceBundleHandle : sourcesHnd .ForProtobuf (),
@@ -124,8 +124,8 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) {
124
124
func TestStacksFindStackConfigurationComponents (t * testing.T ) {
125
125
ctx := context .Background ()
126
126
127
- handles := newHandleTable ()
128
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
127
+ handles := NewHandleTable ()
128
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
129
129
130
130
// In normal use a client would have previously opened a source bundle
131
131
// using Dependencies.OpenSourceBundle, so we'll simulate the effect
@@ -255,8 +255,8 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) {
255
255
func TestStacksOpenState (t * testing.T ) {
256
256
ctx := context .Background ()
257
257
258
- handles := newHandleTable ()
259
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
258
+ handles := NewHandleTable ()
259
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
260
260
261
261
grpcClient , close := grpcClientForTesting (ctx , t , func (srv * grpc.Server ) {
262
262
stacks .RegisterStacksServer (srv , stacksServer )
@@ -320,8 +320,8 @@ func TestStacksOpenState(t *testing.T) {
320
320
func TestStacksOpenPlan (t * testing.T ) {
321
321
ctx := context .Background ()
322
322
323
- handles := newHandleTable ()
324
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
323
+ handles := NewHandleTable ()
324
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
325
325
326
326
grpcClient , close := grpcClientForTesting (ctx , t , func (srv * grpc.Server ) {
327
327
stacks .RegisterStacksServer (srv , stacksServer )
@@ -391,8 +391,8 @@ func TestStacksPlanStackChanges(t *testing.T) {
391
391
t .Fatal (err )
392
392
}
393
393
394
- handles := newHandleTable ()
395
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
394
+ handles := NewHandleTable ()
395
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
396
396
stacksServer .planTimestampOverride = & fakePlanTimestamp
397
397
398
398
fakeSourceBundle := & sourcebundle.Bundle {}
@@ -811,8 +811,8 @@ func TestStackChangeProgress(t *testing.T) {
811
811
t .Run (name , func (t * testing.T ) {
812
812
ctx := context .Background ()
813
813
814
- handles := newHandleTable ()
815
- stacksServer := newStacksServer ( newStopper (), handles , & serviceOpts {})
814
+ handles := NewHandleTable ()
815
+ stacksServer := NewStacksServer ( NewStopper (), handles , & ServiceOpts {})
816
816
817
817
// For this test, we do actually want to use a "real" provider. We'll
818
818
// use the providerCacheOverride to side-load the testing provider.
0 commit comments