@@ -56,9 +56,9 @@ func assertArgumentNotEqual(t *testing.T, key string, expectedValue string, args
5656}
5757
5858func setupRun (t * testing.T ) {
59- componentsDir := DefaultResourcesDirPath ()
59+ resourcesDir := DefaultResourcesDirPath ()
6060 configFile := DefaultConfigFilePath ()
61- err := os .MkdirAll (componentsDir , 0o700 )
61+ err := os .MkdirAll (resourcesDir , 0o700 )
6262 assert .Equal (t , nil , err , "Unable to setup components dir before running test" )
6363 file , err := os .Create (configFile )
6464 file .Close ()
@@ -87,7 +87,7 @@ func assertCommonArgs(t *testing.T, basicConfig *RunConfig, output *RunOutput) {
8787 assertArgumentEqual (t , "app-max-concurrency" , "-1" , output .DaprCMD .Args )
8888 assertArgumentEqual (t , "app-protocol" , "http" , output .DaprCMD .Args )
8989 assertArgumentEqual (t , "app-port" , "3000" , output .DaprCMD .Args )
90- assertArgumentEqual (t , "components-path" , DefaultResourcesDirPrecedence (), output .DaprCMD .Args )
90+ assertArgumentEqual (t , "components-path" , GetResourcesDir (), output .DaprCMD .Args )
9191 assertArgumentEqual (t , "app-ssl" , "" , output .DaprCMD .Args )
9292 assertArgumentEqual (t , "metrics-port" , "9001" , output .DaprCMD .Args )
9393 assertArgumentEqual (t , "dapr-http-max-request-size" , "-1" , output .DaprCMD .Args )
@@ -148,7 +148,7 @@ func TestRun(t *testing.T) {
148148 EnableProfiling : false ,
149149 ProfilePort : 9090 ,
150150 Protocol : "http" ,
151- ComponentsPath : DefaultResourcesDirPrecedence (),
151+ ComponentsPath : GetResourcesDir (),
152152 AppSSL : true ,
153153 MetricsPort : 9001 ,
154154 MaxRequestBodySize : - 1 ,
0 commit comments