Skip to content

Fix test enivronment determination #342

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

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

angary
Copy link
Member

@angary angary commented Mar 19, 2023

This change no longer requires the -v flag to be present when testing as it simply checks whether the flag has been added as an environment variable during the loading of the testing package, rather than if it has been set.

Seems to be the suggested way of checking if we are in a testing environment according to stack overflow.

@angary angary requested a review from hdphuong as a code owner March 19, 2023 11:19
@Varun-Sethu
Copy link
Member

Varun-Sethu commented Mar 19, 2023

Do you mind removing the -v flag from the go test in our github actions pipeline? https://github.com/csesoc/website/blob/main/.github/workflows/ci.yml#L28 doing so will allow you to verify if the changes actually work.

But otherwise, LGTM! 🚀 😎 🍅

@angary angary requested a review from a team as a code owner March 19, 2023 13:25
Copy link
Member

@Varun-Sethu Varun-Sethu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (the looks good part, not the lets get this merged part)

@angary angary requested a review from ShunyaoLiang as a code owner September 8, 2023 06:37
@ShunyaoLiang ShunyaoLiang merged commit 13c3591 into csesoc:main Sep 8, 2023
@angary angary deleted the gary/testing-env-fix branch September 9, 2023 09:53
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.

5 participants