File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/Aspire.Hosting.Containers.Tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void AddContainerAddsAnnotationMetadata()
24
24
25
25
var containerResource = Assert . Single ( containerResources ) ;
26
26
Assert . Equal ( "container" , containerResource . Name ) ;
27
- var containerAnnotation = Assert . IsType < ContainerImageAnnotation > ( Assert . Single ( containerResource . Annotations ) ) ;
27
+ var containerAnnotation = Assert . Single ( containerResource . Annotations . OfType < ContainerImageAnnotation > ( ) ) ;
28
28
Assert . Equal ( "latest" , containerAnnotation . Tag ) ;
29
29
Assert . Equal ( "none" , containerAnnotation . Image ) ;
30
30
Assert . Null ( containerAnnotation . Registry ) ;
@@ -43,7 +43,7 @@ public void AddContainerAddsAnnotationMetadataWithTag()
43
43
44
44
var containerResource = Assert . Single ( containerResources ) ;
45
45
Assert . Equal ( "container" , containerResource . Name ) ;
46
- var containerAnnotation = Assert . IsType < ContainerImageAnnotation > ( Assert . Single ( containerResource . Annotations ) ) ;
46
+ var containerAnnotation = Assert . Single ( containerResource . Annotations . OfType < ContainerImageAnnotation > ( ) ) ;
47
47
Assert . Equal ( "nightly" , containerAnnotation . Tag ) ;
48
48
Assert . Equal ( "none" , containerAnnotation . Image ) ;
49
49
Assert . Null ( containerAnnotation . Registry ) ;
You can’t perform that action at this time.
0 commit comments