Skip to content

Commit

Permalink
fix(tests): change id for macroexpl_id
Browse files Browse the repository at this point in the history
  • Loading branch information
danimarinBG committed Aug 19, 2024
1 parent 62f64b3 commit abb300e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/upsert/ud/test_macro.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SELECT plan(12);

-- Subtest 1: Testing macroexplotation operations
INSERT INTO macroexploitation (macroexpl_id, "name", descript, undelete, active) VALUES(2, 'Test', 'Test macroexploitation', NULL, true);
SELECT is((SELECT count(*)::integer FROM macroexploitation WHERE id = 2), 1, 'INSERT: macroexploitation "2" was inserted');
SELECT is((SELECT count(*)::integer FROM macroexploitation WHERE macroexpl_id = 2), 1, 'INSERT: macroexploitation "2" was inserted');

UPDATE macroexploitation SET descript = 'updated test' WHERE macroexpl_id = 2;
SELECT is((SELECT descript FROM macroexploitation WHERE macroexpl_id = 2), 'updated test', 'UPDATE: descript was updated to "updated test"');
Expand Down
2 changes: 1 addition & 1 deletion test/upsert/ws/test_macro.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SELECT plan(16);

-- Subtest 1: Testing macroexplotation operations
INSERT INTO macroexploitation (macroexpl_id, "name", descript, undelete, active) VALUES(2, 'Test', 'Test macroexploitation', NULL, true);
SELECT is((SELECT count(*)::integer FROM macroexploitation WHERE id = 2), 1, 'INSERT: macroexploitation "2" was inserted');
SELECT is((SELECT count(*)::integer FROM macroexploitation WHERE macroexpl_id = 2), 1, 'INSERT: macroexploitation "2" was inserted');

UPDATE macroexploitation SET descript = 'updated test' WHERE macroexpl_id = 2;
SELECT is((SELECT descript FROM macroexploitation WHERE macroexpl_id = 2), 'updated test', 'UPDATE: descript was updated to "updated test"');
Expand Down

0 comments on commit abb300e

Please sign in to comment.