@@ -26,7 +26,7 @@ func TestExecutorAutostartOK(t *testing.T) {
26
26
err error
27
27
tickCh = make (chan time.Time )
28
28
client = coderdtest .New (t , & coderdtest.Options {
29
- LifecycleTicker : tickCh ,
29
+ AutobuildTicker : tickCh ,
30
30
})
31
31
// Given: we have a user with a workspace
32
32
workspace = mustProvisionWorkspace (t , client )
@@ -66,7 +66,7 @@ func TestExecutorAutostartTemplateUpdated(t *testing.T) {
66
66
err error
67
67
tickCh = make (chan time.Time )
68
68
client = coderdtest .New (t , & coderdtest.Options {
69
- LifecycleTicker : tickCh ,
69
+ AutobuildTicker : tickCh ,
70
70
})
71
71
// Given: we have a user with a workspace
72
72
workspace = mustProvisionWorkspace (t , client )
@@ -118,7 +118,7 @@ func TestExecutorAutostartAlreadyRunning(t *testing.T) {
118
118
err error
119
119
tickCh = make (chan time.Time )
120
120
client = coderdtest .New (t , & coderdtest.Options {
121
- LifecycleTicker : tickCh ,
121
+ AutobuildTicker : tickCh ,
122
122
})
123
123
// Given: we have a user with a workspace
124
124
workspace = mustProvisionWorkspace (t , client )
@@ -156,7 +156,7 @@ func TestExecutorAutostartNotEnabled(t *testing.T) {
156
156
var (
157
157
tickCh = make (chan time.Time )
158
158
client = coderdtest .New (t , & coderdtest.Options {
159
- LifecycleTicker : tickCh ,
159
+ AutobuildTicker : tickCh ,
160
160
})
161
161
// Given: we have a user with a workspace
162
162
workspace = mustProvisionWorkspace (t , client )
@@ -189,7 +189,7 @@ func TestExecutorAutostopOK(t *testing.T) {
189
189
err error
190
190
tickCh = make (chan time.Time )
191
191
client = coderdtest .New (t , & coderdtest.Options {
192
- LifecycleTicker : tickCh ,
192
+ AutobuildTicker : tickCh ,
193
193
})
194
194
// Given: we have a user with a workspace
195
195
workspace = mustProvisionWorkspace (t , client )
@@ -229,7 +229,7 @@ func TestExecutorAutostopAlreadyStopped(t *testing.T) {
229
229
err error
230
230
tickCh = make (chan time.Time )
231
231
client = coderdtest .New (t , & coderdtest.Options {
232
- LifecycleTicker : tickCh ,
232
+ AutobuildTicker : tickCh ,
233
233
})
234
234
// Given: we have a user with a workspace
235
235
workspace = mustProvisionWorkspace (t , client )
@@ -267,7 +267,7 @@ func TestExecutorAutostopNotEnabled(t *testing.T) {
267
267
var (
268
268
tickCh = make (chan time.Time )
269
269
client = coderdtest .New (t , & coderdtest.Options {
270
- LifecycleTicker : tickCh ,
270
+ AutobuildTicker : tickCh ,
271
271
})
272
272
// Given: we have a user with a workspace
273
273
workspace = mustProvisionWorkspace (t , client )
@@ -300,7 +300,7 @@ func TestExecutorWorkspaceDeleted(t *testing.T) {
300
300
err error
301
301
tickCh = make (chan time.Time )
302
302
client = coderdtest .New (t , & coderdtest.Options {
303
- LifecycleTicker : tickCh ,
303
+ AutobuildTicker : tickCh ,
304
304
})
305
305
// Given: we have a user with a workspace
306
306
workspace = mustProvisionWorkspace (t , client )
@@ -340,7 +340,7 @@ func TestExecutorWorkspaceTooEarly(t *testing.T) {
340
340
err error
341
341
tickCh = make (chan time.Time )
342
342
client = coderdtest .New (t , & coderdtest.Options {
343
- LifecycleTicker : tickCh ,
343
+ AutobuildTicker : tickCh ,
344
344
})
345
345
// Given: we have a user with a workspace
346
346
workspace = mustProvisionWorkspace (t , client )
@@ -384,10 +384,10 @@ func TestExecutorAutostartMultipleOK(t *testing.T) {
384
384
tickCh = make (chan time.Time )
385
385
tickCh2 = make (chan time.Time )
386
386
client = coderdtest .New (t , & coderdtest.Options {
387
- LifecycleTicker : tickCh ,
387
+ AutobuildTicker : tickCh ,
388
388
})
389
389
_ = coderdtest .New (t , & coderdtest.Options {
390
- LifecycleTicker : tickCh2 ,
390
+ AutobuildTicker : tickCh2 ,
391
391
})
392
392
// Given: we have a user with a workspace
393
393
workspace = mustProvisionWorkspace (t , client )
0 commit comments