Add unit tests mocha and sql

This commit is contained in:
xbgmsharp
2023-08-23 12:23:51 +02:00
parent 2d3c531960
commit 5105322eed
25 changed files with 6756 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
---------------------------------------------------------------------------
-- Listing
--
-- List current database
select current_database();
-- connect to the DB
\c signalk
-- output display format
\x on
-- Check the number of process pending
-- Should be 22
SELECT count(*) as jobs from public.process_queue pq where pq.processed is null;
--set role scheduler
SELECT public.run_cron_jobs();
-- Check any pending job
SELECT count(*) as any_pending_jobs from public.process_queue pq where pq.processed is null;