File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ testRepoIndex inMemRepo repo = do
238
238
length (directoryEntries dir1) @?= 0
239
239
240
240
now <- getCurrentTime
241
- inMemRepoSetIndex inMemRepo now [testEntry1]
241
+ inMemRepoSetIndex inMemRepo now testEntries1
242
242
243
243
assertEqual " B" HasUpdates =<< checkForUpdates repo =<< checkExpiry
244
244
dir2 <- getDirectory repo
@@ -264,9 +264,9 @@ testRepoIndex inMemRepo repo = do
264
264
_ -> fail " unexpected index entry content"
265
265
_ -> fail " unexpected index path"
266
266
267
- testEntry1 = Tar. fileEntry path testEntrycontent
268
- where
269
- Right path = Tar. toTarPath False " foo/preferred-versions"
267
+ testEntries1 :: [ Tar. GenEntry Tar. TarPath linkTarget ]
268
+ testEntries1 = either ( const [] ) ( pure . ( `Tar.fileEntry` testEntrycontent))
269
+ ( Tar. toTarPath False " foo/preferred-versions" )
270
270
testEntrycontent = BS. pack " foo >= 1"
271
271
testEntryIndexFile = IndexPkgPrefs (mkPackageName " foo" )
272
272
You can’t perform that action at this time.
0 commit comments