11//go:build e2e && !template
2- // +build e2e,!template
32
43/*
54Copyright 2022 The Dapr Authors
@@ -167,15 +166,17 @@ func TestStandaloneInit(t *testing.T) {
167166 placementPort = 6050
168167 }
169168
170- verifyTCPLocalhost (t , placementPort )
169+ verifyTCPLocalhost (t , placementPort )
171170 })
172171
173172 t .Run ("init version with scheduler" , func (t * testing.T ) {
174173 // Ensure a clean environment
175174 must (t , cmdUninstall , "failed to uninstall Dapr" )
176175
176+ latestDaprRuntimeVersion , latestDaprDashboardVersion := common .GetVersionsFromEnv (t , true )
177+
177178 args := []string {
178- "--runtime-version" , "1.14.0-rc.3" ,
179+ "--runtime-version" , latestDaprRuntimeVersion ,
179180 "--dev" ,
180181 }
181182 output , err := cmdInit (args ... )
@@ -189,9 +190,8 @@ func TestStandaloneInit(t *testing.T) {
189190 daprPath := filepath .Join (homeDir , ".dapr" )
190191 require .DirExists (t , daprPath , "Directory %s does not exist" , daprPath )
191192
192- _ , latestDaprDashboardVersion := common .GetVersionsFromEnv (t , true )
193- verifyContainers (t , "1.14.0-rc.3" )
194- verifyBinaries (t , daprPath , "1.14.0-rc.3" , latestDaprDashboardVersion )
193+ verifyContainers (t , latestDaprRuntimeVersion )
194+ verifyBinaries (t , daprPath , latestDaprRuntimeVersion , latestDaprDashboardVersion )
195195 verifyConfigs (t , daprPath )
196196
197197 placementPort := 50005
@@ -201,8 +201,8 @@ func TestStandaloneInit(t *testing.T) {
201201 schedulerPort = 6060
202202 }
203203
204- verifyTCPLocalhost (t , placementPort )
205- verifyTCPLocalhost (t , schedulerPort )
204+ verifyTCPLocalhost (t , placementPort )
205+ verifyTCPLocalhost (t , schedulerPort )
206206 })
207207
208208 t .Run ("init without runtime-version flag with mariner images" , func (t * testing.T ) {
0 commit comments