File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ func TestLogs(t *testing.T) {
110
110
"Dockerfile" : fmt .Sprintf (`FROM %s` , testImageUbuntu ),
111
111
},
112
112
})
113
- _ , err := runEnvbuilder (t , runOpts {env : []string {
113
+ ctrID , err := runEnvbuilder (t , runOpts {env : []string {
114
114
envbuilderEnv ("GIT_URL" , srv .URL ),
115
115
"CODER_AGENT_URL=" + logSrv .URL ,
116
116
"CODER_AGENT_TOKEN=" + token ,
@@ -123,6 +123,10 @@ func TestLogs(t *testing.T) {
123
123
t .Fatal ("timed out waiting for logs" )
124
124
case <- logsDone :
125
125
}
126
+
127
+ // Ensure that CODER_AGENT_SUBSYSTEM is set correctly inside the container.
128
+ output := execContainer (t , ctrID , "echo $CODER_AGENT_SUBSYSTEM" )
129
+ require .Equal (t , "envbuilder" , strings .TrimSpace (output ))
126
130
}
127
131
128
132
func TestInitScriptInitCommand (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments