@@ -1209,7 +1209,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1209
1209
1210
1210
_ , client , _ , _ , _ := setupAgent (t , agentsdk.Manifest {
1211
1211
Scripts : []codersdk.WorkspaceAgentScript {{
1212
- Script : "sleep 3" ,
1212
+ Source : "sleep 3" ,
1213
1213
Timeout : time .Nanosecond ,
1214
1214
RunOnStart : true ,
1215
1215
}},
@@ -1234,7 +1234,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1234
1234
1235
1235
_ , client , _ , _ , _ := setupAgent (t , agentsdk.Manifest {
1236
1236
Scripts : []codersdk.WorkspaceAgentScript {{
1237
- Script : "false" ,
1237
+ Source : "false" ,
1238
1238
Timeout : 30 * time .Second ,
1239
1239
RunOnStart : true ,
1240
1240
}},
@@ -1259,7 +1259,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1259
1259
1260
1260
_ , client , _ , _ , _ := setupAgent (t , agentsdk.Manifest {
1261
1261
Scripts : []codersdk.WorkspaceAgentScript {{
1262
- Script : "true" ,
1262
+ Source : "true" ,
1263
1263
Timeout : 30 * time .Second ,
1264
1264
RunOnStart : true ,
1265
1265
}},
@@ -1284,7 +1284,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1284
1284
1285
1285
_ , client , _ , _ , closer := setupAgent (t , agentsdk.Manifest {
1286
1286
Scripts : []codersdk.WorkspaceAgentScript {{
1287
- Script : "sleep 3" ,
1287
+ Source : "sleep 3" ,
1288
1288
Timeout : 30 * time .Second ,
1289
1289
RunOnStop : true ,
1290
1290
}},
@@ -1325,7 +1325,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1325
1325
1326
1326
_ , client , _ , _ , closer := setupAgent (t , agentsdk.Manifest {
1327
1327
Scripts : []codersdk.WorkspaceAgentScript {{
1328
- Script : "sleep 3" ,
1328
+ Source : "sleep 3" ,
1329
1329
Timeout : time .Nanosecond ,
1330
1330
RunOnStop : true ,
1331
1331
}},
@@ -1367,7 +1367,7 @@ func TestAgent_Lifecycle(t *testing.T) {
1367
1367
1368
1368
_ , client , _ , _ , closer := setupAgent (t , agentsdk.Manifest {
1369
1369
Scripts : []codersdk.WorkspaceAgentScript {{
1370
- Script : "false" ,
1370
+ Source : "false" ,
1371
1371
Timeout : 30 * time .Second ,
1372
1372
RunOnStop : true ,
1373
1373
}},
@@ -1417,11 +1417,11 @@ func TestAgent_Lifecycle(t *testing.T) {
1417
1417
DERPMap : derpMap ,
1418
1418
Scripts : []codersdk.WorkspaceAgentScript {{
1419
1419
LogSourceDisplayName : "startup" ,
1420
- Script : "echo 1" ,
1420
+ Source : "echo 1" ,
1421
1421
RunOnStart : true ,
1422
1422
}, {
1423
1423
LogSourceDisplayName : "shutdown" ,
1424
- Script : "echo " + expected ,
1424
+ Source : "echo " + expected ,
1425
1425
RunOnStop : true ,
1426
1426
}},
1427
1427
},
0 commit comments