@@ -163,9 +163,9 @@ func TestWithAttachmentsAndNestedDirectories(t *testing.T) {
163163 app , err := NewAppFromDefaultFiles (dir .Path ())
164164 assert .NilError (t , err )
165165 assert .Assert (t , is .Len (app .Attachments (), 2 ))
166- assert .Assert (t , is . Equal ( app .Attachments ()[0 ].Path (), "config.cfg" ) )
167- assert .Assert (t , is . Equal ( app .Attachments ()[0 ].Size (), int64 (9 ) ))
168- assert .Assert (t , is . Equal ( app .Attachments ()[1 ].Path (), "nesteddirectory/nestedconfig.cfg" ) )
166+ assert .Equal (t , app .Attachments ()[0 ].Path (), "config.cfg" )
167+ assert .Equal (t , app .Attachments ()[0 ].Size (), int64 (9 ))
168+ assert .Equal (t , app .Attachments ()[1 ].Path (), "nesteddirectory/nestedconfig.cfg" )
169169}
170170
171171func TestAttachmentsAreSorted (t * testing.T ) {
@@ -186,12 +186,12 @@ func TestAttachmentsAreSorted(t *testing.T) {
186186 app , err := NewAppFromDefaultFiles (dir .Path ())
187187 assert .NilError (t , err )
188188 assert .Assert (t , is .Len (app .Attachments (), 6 ))
189- assert .Assert (t , is . Equal ( app .Attachments ()[0 ].Path (), "a.cfg" ) )
190- assert .Assert (t , is . Equal ( app .Attachments ()[1 ].Path (), "b.cfg" ) )
191- assert .Assert (t , is . Equal ( app .Attachments ()[2 ].Path (), "c.cfg" ) )
192- assert .Assert (t , is . Equal ( app .Attachments ()[3 ].Path (), "nesteddirectory/a.cfg" ) )
193- assert .Assert (t , is . Equal ( app .Attachments ()[4 ].Path (), "nesteddirectory/b.cfg" ) )
194- assert .Assert (t , is . Equal ( app .Attachments ()[5 ].Path (), "nesteddirectory/c.cfg" ) )
189+ assert .Equal (t , app .Attachments ()[0 ].Path (), "a.cfg" )
190+ assert .Equal (t , app .Attachments ()[1 ].Path (), "b.cfg" )
191+ assert .Equal (t , app .Attachments ()[2 ].Path (), "c.cfg" )
192+ assert .Equal (t , app .Attachments ()[3 ].Path (), "nesteddirectory/a.cfg" )
193+ assert .Equal (t , app .Attachments ()[4 ].Path (), "nesteddirectory/b.cfg" )
194+ assert .Equal (t , app .Attachments ()[5 ].Path (), "nesteddirectory/c.cfg" )
195195}
196196
197197func TestWithAttachmentsIncludingNestedCoreFiles (t * testing.T ) {
@@ -209,9 +209,9 @@ func TestWithAttachmentsIncludingNestedCoreFiles(t *testing.T) {
209209 app , err := NewAppFromDefaultFiles (dir .Path ())
210210 assert .NilError (t , err )
211211 assert .Assert (t , is .Len (app .Attachments (), 3 ))
212- assert .Assert (t , is . Equal ( app .Attachments ()[0 ].Path (), path .Join ("nesteddirectory" , internal .ComposeFileName ) ))
213- assert .Assert (t , is . Equal ( app .Attachments ()[1 ].Path (), path .Join ("nesteddirectory" , internal .MetadataFileName ) ))
214- assert .Assert (t , is . Equal ( app .Attachments ()[2 ].Path (), path .Join ("nesteddirectory" , internal .SettingsFileName ) ))
212+ assert .Equal (t , app .Attachments ()[0 ].Path (), path .Join ("nesteddirectory" , internal .ComposeFileName ))
213+ assert .Equal (t , app .Attachments ()[1 ].Path (), path .Join ("nesteddirectory" , internal .MetadataFileName ))
214+ assert .Equal (t , app .Attachments ()[2 ].Path (), path .Join ("nesteddirectory" , internal .SettingsFileName ))
215215}
216216
217217func TestValidateBrokenMetadata (t * testing.T ) {
0 commit comments