File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ func TestPushContainerfile(t *testing.T) {
7979 for i := 0 ; i < len (files ); i += 2 {
8080 fileContent := files [i ]
8181 fileName := files [i + 1 ]
82- script := fmt .Sprintf (`echo "%s" >%s` , fileContent , fileName )
82+ script := fmt .Sprintf (`echo -n "%s" >%s` , fileContent , fileName )
8383 err := container .ExecuteCommand ("bash" , "-c" , script )
8484 g .Expect (err ).ShouldNot (HaveOccurred ())
8585 }
@@ -218,7 +218,7 @@ func TestPushContainerfile(t *testing.T) {
218218 if title , exists := layerAnnotations ["org.opencontainers.image.title" ]; exists {
219219 g .Expect (title ).Should (Equal (tc .expectedTitleAnnotationValue ))
220220 }
221- g .Expect (layerDescriptor .Digest , tc .expectedContainerfileDigest )
221+ g .Expect (string ( layerDescriptor .Digest )). Should ( Equal ( "sha256:" + tc .expectedContainerfileDigest ) )
222222
223223 expectedArtifactType := tc .params .artifactType
224224 if expectedArtifactType == "" {
You can’t perform that action at this time.
0 commit comments