File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
azure-functions-language-worker-protobuf/src/proto
test/WebJobs.Script.Tests/Workers/Rpc Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ internal WorkerInitRequest GetWorkerInitRequest()
228228 return new WorkerInitRequest ( )
229229 {
230230 HostVersion = ScriptHost . Version ,
231- WorkerDirectory = _workerConfig . Description . WorkerDirectory
231+ WorkerDirectory = _workerConfig . Description . WorkerDirectory ,
232+ FunctionAppDirectory = _applicationHostOptions . CurrentValue . ScriptPath
232233 } ;
233234 }
234235
Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ message WorkerInitRequest {
113113
114114 // Full path of worker.config.json location
115115 string worker_directory = 4 ;
116+
117+ // base directory for function app
118+ string function_app_directory = 5 ;
116119}
117120
118121// Worker responds with the result of initializing itself
Original file line number Diff line number Diff line change @@ -225,8 +225,10 @@ public void WorkerInitRequest_Expected()
225225 {
226226 WorkerInitRequest initRequest = _workerChannel . GetWorkerInitRequest ( ) ;
227227 Assert . NotNull ( initRequest . WorkerDirectory ) ;
228+ Assert . NotNull ( initRequest . FunctionAppDirectory ) ;
228229 Assert . NotNull ( initRequest . HostVersion ) ;
229230 Assert . Equal ( "testDir" , initRequest . WorkerDirectory ) ;
231+ Assert . Equal ( _scriptRootPath , initRequest . FunctionAppDirectory ) ;
230232 Assert . Equal ( ScriptHost . Version , initRequest . HostVersion ) ;
231233 }
232234
You can’t perform that action at this time.
0 commit comments