Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3733

preferences server "without DB" tests cannot be run in isolation.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In working to update universal to use CouchDb for its tests, I discovered something about the preferences server tests. As with all our tests, running a single test in isolation should have the same results as running it in a suite. I've found that this isn't the case for this test:

      https://github.com/GPII/universal/blob/master/gpii/node_modules/preferencesServer/test/preferencesServerTests.js#L1584

      The tests only pass if the previous call to gpii.test.bootstrapServer is run first. If the "without db" test is launched in isolation, it fails to reach the database and throws an error. This is reproducible in master without altering any configuration or test steps, simply commenting
      out that single line is enough.

        Attachments

          Activity

            People

            • Assignee:
              cli@ocad.ca Cindy Qi Li
              Reporter:
              the-t-in-rtf Tony Atkins
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: