@@ -102,12 +102,12 @@ func testLayerReuse(t *testing.T, context spec.G, it spec.S) {
102102 Expect (logs ).To (ContainLines (
103103 " Resolving ASP.NET Core Runtime version" ,
104104 " Candidate version sources (in priority order):" ,
105- ` runtimeconfig.json -> "6.0.0"` ,
105+ MatchRegexp ( ` runtimeconfig.json -> "\d+\.\d+\.\d+"` ) ,
106106 ` <unknown> -> ""` ,
107107 "" ,
108108 " No exact version match found; attempting version roll-forward" ,
109109 "" ,
110- MatchRegexp (` Selected ASP.NET Core Runtime version \(using runtimeconfig.json\): 6\.0 \.\d+` ),
110+ MatchRegexp (` Selected ASP.NET Core Runtime version \(using runtimeconfig.json\): \d+\.\d+ \.\d+` ),
111111 ))
112112 Expect (logs ).To (ContainLines (
113113 MatchRegexp (fmt .Sprintf (" Reusing cached layer /layers/%s/dotnet-core-aspnet-runtime" , strings .ReplaceAll (buildpackInfo .Buildpack .ID , "/" , "_" ))),
@@ -193,7 +193,7 @@ func testLayerReuse(t *testing.T, context spec.G, it spec.S) {
193193 settings .Buildpacks .BuildPlan .Online ,
194194 ).
195195 WithEnv (map [string ]string {
196- "BP_DOTNET_FRAMEWORK_VERSION" : "6 .*" ,
196+ "BP_DOTNET_FRAMEWORK_VERSION" : "9 .*" ,
197197 }).
198198 Execute (name , source )
199199 Expect (err ).NotTo (HaveOccurred (), logs .String ())
@@ -208,8 +208,8 @@ func testLayerReuse(t *testing.T, context spec.G, it spec.S) {
208208 Expect (logs ).To (ContainLines (
209209 " Resolving ASP.NET Core Runtime version" ,
210210 " Candidate version sources (in priority order):" ,
211- ` BP_DOTNET_FRAMEWORK_VERSION -> "6 .*"` ,
212- ` runtimeconfig.json -> "6.0.0"` ,
211+ ` BP_DOTNET_FRAMEWORK_VERSION -> "9 .*"` ,
212+ MatchRegexp ( ` runtimeconfig.json -> "\d+\.\d+\.\d+"` ) ,
213213 ` <unknown> -> ""` ,
214214 "" ,
215215 MatchRegexp (` Selected ASP.NET Core Runtime version \(using BP_DOTNET_FRAMEWORK_VERSION\): \d+\.\d+\.\d+` ),
0 commit comments