Skip to content

Commit

Permalink
increase timeout times for jsonb tests to work in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Cmdv committed May 13, 2024
1 parent 975b99f commit 26048f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ configJsonbInSchemaTrue ioManager metadata = do
where
action = \_interpreter _mockServer dbSync -> do
startDBSync dbSync
threadDelay 2_000_000
threadDelay 5_000_000
assertEqQuery
dbSync
DB.queryJsonbInSchemaExists
Expand Down Expand Up @@ -52,7 +52,7 @@ configJsonbInSchemaFalse ioManager metadata = do
where
action = \_interpreter _mockServer dbSync -> do
startDBSync dbSync
threadDelay 2_000_000
threadDelay 5_000_000
assertEqQuery
dbSync
DB.queryJsonbInSchemaExists
Expand Down Expand Up @@ -81,7 +81,7 @@ configJsonbInSchemaShouldError ioManager metadata = do
where
action = \_interpreter _mockServer dbSync -> do
startDBSync dbSync
threadDelay 2_000_000
threadDelay 5_000_000
stopDBSync dbSync
let newDbSyncEnv =
dbSync
Expand All @@ -94,7 +94,7 @@ configJsonbInSchemaShouldError ioManager metadata = do
}
}
startDBSync newDbSyncEnv
threadDelay 2_000_000
threadDelay 5_000_000
-- Expected to fail
checkStillRuns dbSync

Expand Down
1 change: 0 additions & 1 deletion cardano-db-sync/src/Cardano/DbSync.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ runSyncNode metricsSetters trce iomgr dbConnString ranMigrations runMigrationFnc
case dncShelleyHardFork cfg of
HardFork.TriggerHardForkAtEpoch (EpochNo 0) -> True
_other -> False
-- isJsonBInSchemaConfig = isAddJsonbToSchemaEnabled (sioAddJsonbToSchema (dncInsertOptions syncNodeConfigFromFile))
isJsonBInSchemaConfig = ioAddJsonbToSchema $ soptInsertOptions syncOptions
maybeLedgerDir = enpMaybeLedgerStateDir syncNodeParams

Expand Down

0 comments on commit 26048f6

Please # to comment.