Skip to content

Commit 7cfd660

Browse files
committed
change file location
1 parent 0d925be commit 7cfd660

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

cardano-db-sync/cardano-db-sync.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ category: Cryptocurrency
1616
build-type: Custom
1717
extra-source-files: CHANGELOG.md
1818
schema/*.sql
19+
test/testfiles/*.jsonld
1920

2021
custom-setup
2122
setup-depends:

cardano-db-sync/test/Cardano/DbSync/OffChain/VoteTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tests =
3131
prop_parseInvalidCIPFormat :: Property
3232
prop_parseInvalidCIPFormat = withTests 1 $ property $ do
3333
-- Read the test file with invalid doNotList field (string instead of bool)
34-
fileContent <- liftIO $ BS.readFile "../cardano-chain-gen/test/testfiles/invalid-vote-doNotList.jsonld"
34+
fileContent <- liftIO $ BS.readFile "test/testfiles/invalid-vote-doNotList.jsonld"
3535
let lbsContent = LBS.fromStrict fileContent
3636

3737
-- Run the parser

cardano-chain-gen/test/testfiles/invalid-vote-doNotList.jsonld renamed to cardano-db-sync/test/testfiles/invalid-vote-doNotList.jsonld

File renamed without changes.

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@
218218
# Override extra-source-files
219219
packages.cardano-db-sync.package.extraSrcFiles =
220220
[ "../schema/*.sql" ];
221+
packages.cardano-db-sync.components.tests.test.extraSrcFiles =
222+
[ "test/testfiles/*.jsonld" ];
221223
packages.cardano-db.package.extraSrcFiles =
222224
["../config/pgpass-testnet"];
223225
packages.cardano-db.components.tests.schema-rollback.extraSrcFiles =

0 commit comments

Comments
 (0)