Edited version of structure.sql, in which notification.id is defined as 'serial primary key' which has eradicated intermittent, randomish test failures.
Edited version of structure.sql, in which notification.id is defined as 'serial primary key' which has eradicated intermittent, randomish test failures.

I noticed these intermittent controller tests popping up, with errors reported in varying tests.

I repeated one set of such errors using:

  SEED=58155 bundle exec rake test:controllers

and was able to dig in and find unique key constraint violations on notification.id.

Since changing the definition of notification and the relevant functions that insert records, I haven't seen any of these random errors, and the replication
command with seed 58155 runs fine.  This change affects only the test environment.

bio-org-au/nsl-editor,bio-org-au/nsl-editor,bio-org-au/nsl-editor,bio-org-au/nsl-editor