File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Microsoft.DotNet.Docker.Tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public ImageScenarioVerifier(
37
37
_imageData = imageData ;
38
38
_isWeb = isWeb ;
39
39
_outputHelper = outputHelper ;
40
- _nonRootUserSupported = DockerHelper . IsLinuxContainerModeEnabled && _imageData . Version . Major >= 8 ;
40
+ _nonRootUserSupported = DockerHelper . IsLinuxContainerModeEnabled && _imageData . Version . Major != 6 && _imageData . Version . Major != 7 ;
41
41
}
42
42
43
43
public async Task Execute ( )
@@ -59,8 +59,8 @@ public async Task Execute()
59
59
// Use `sdk` image to build and run test app
60
60
string buildTag = BuildTestAppImage ( "build" , solutionDir , customBuildArgs ) ;
61
61
tags . Add ( buildTag ) ;
62
- string dotnetRunArgs = _isWeb && _imageData . Version . Major < 8 ? $ " --urls http://0.0.0.0:{ _imageData . DefaultPort } " : string . Empty ;
63
- await RunTestAppImage ( buildTag , command : $ "dotnet run{ dotnetRunArgs } ") ;
62
+ string dotnetRunArgs = _isWeb && ( _imageData . Version . Major == 6 || _imageData . Version . Major == 7 ) ? $ " --urls http://0.0.0.0:{ _imageData . DefaultPort } " : string . Empty ;
63
+ await RunTestAppImage ( buildTag , command : $ "dotnet run") ;
64
64
}
65
65
66
66
// Running a scenario of unit testing within the sdk container is identical between a console app and web app,
You can’t perform that action at this time.
0 commit comments