Skip to content

Commit 6f0ee96

Browse files
committed
Fix indexes tests
1 parent 09616be commit 6f0ee96

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Babbage/CommandLineArg/ForceIndex.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ checkForceIndexesArg =
1919
withCustomConfig commandLineForceIndexArgs babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do
2020
startDBSync dbSyncEnv
2121
threadDelay 3_000_000
22-
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 165 "there wasn't the correct number of indexes"
22+
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 161 "there wasn't the correct number of indexes"
2323
where
2424
testLabel = "CLAcheckForceIndexesArg"
2525
commandLineForceIndexArgs =
@@ -32,7 +32,7 @@ checkNoForceIndexesArg =
3232
withCustomConfigAndDropDB commandLineNoForceIndexArgs babbageConfigDir testLabel $ \_ _ dbSyncEnv -> do
3333
startDBSync dbSyncEnv
3434
threadDelay 3_000_000
35-
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 100 "there wasn't the correct number of indexes"
35+
assertEqQuery dbSyncEnv DB.queryPgIndexesCount 97 "there wasn't the correct number of indexes"
3636
where
3737
testLabel = "CLAcheckNoForceIndexesArg"
3838
commandLineNoForceIndexArgs =

cardano-chain-gen/test/Test/Cardano/Db/Mock/Unit/Conway/CommandLineArg/ForceIndex.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ checkForceIndexesArg =
1717
startDBSync dbSync
1818

1919
-- Verify number of DB indexes
20-
assertEqQuery dbSync DB.queryPgIndexesCount 165 "unexpected number of indexes"
20+
assertEqQuery dbSync DB.queryPgIndexesCount 161 "unexpected number of indexes"
2121
where
2222
cliArgs = initCommandLineArgs {claForceIndexes = True}
2323
testLabel = "conwayCLACheckForceIndexesArg"
@@ -28,7 +28,7 @@ checkNoForceIndexesArg =
2828
startDBSync dbSync
2929

3030
-- Verify number of DB indexes
31-
assertEqQuery dbSync DB.queryPgIndexesCount 100 "unexpected number of indexes"
31+
assertEqQuery dbSync DB.queryPgIndexesCount 97 "unexpected number of indexes"
3232
where
3333
cliArgs = initCommandLineArgs {claForceIndexes = False}
3434
testLabel = "conwayCLACheckNoForceIndexesArg"

schema/migration-4-0002-20200810.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11

22
CREATE INDEX IF NOT EXISTS idx_block_time ON block(time);
3-
CREATE INDEX IF NOT EXISTS idx_tx_out_payment_cred ON tx_out(payment_cred);
43
CREATE INDEX IF NOT EXISTS idx_pool_update_hash_id ON pool_update(hash_id);

0 commit comments

Comments
 (0)