Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test globals #3264

Merged
merged 8 commits into from
Jun 19, 2024
Merged

Remove test globals #3264

merged 8 commits into from
Jun 19, 2024

Conversation

brianc
Copy link
Owner

@brianc brianc commented Jun 19, 2024

Some of the older (very old) code in the test files was relying on global variables defined in other files. A bad decision from many years ago I have been meaning to rectify. Removed the global assert function (it is still monkey patched in ./test-helper but that's not as bad) and also removed the global test function, global instances of Client and the few places global MemoryStream was used. Now everything is imported/required within the file(s) its used.

Copy link

cloudflare-workers-and-pages bot commented Jun 19, 2024

Deploying node-postgres with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1b4e9b9
Status: ✅  Deploy successful!
Preview URL: https://5915b92c.node-postgres.pages.dev
Branch Preview URL: https://bmc-remove-test-globals.node-postgres.pages.dev

View logs

@brianc brianc merged commit 50c06f9 into master Jun 19, 2024
11 checks passed
@brianc brianc deleted the bmc/remove-test-globals branch June 19, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant