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

add uptime #1422

Merged
merged 2 commits into from
Nov 28, 2022
Merged

add uptime #1422

merged 2 commits into from
Nov 28, 2022

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Nov 24, 2022

not quite sure how to test or if it's the best way to have system variables that dynamically update...

fix for: dolthub/dolt#4473

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Nice! I think this is fine.

For testing, you could just call SHOW GLOBAL STATUS LIKE 'Uptime'; and assert that the result is a non negative integer. Probably can't use a ScriptTestAssertion though, since you don't know the exact value ahead of time though, and I can't think of a way to modify that restricted query to make it work in one like we could with a more flexible select statement.

@jycor jycor merged commit 76b6dd9 into main Nov 28, 2022
@Hydrocharged Hydrocharged deleted the james/whatsuptime branch March 29, 2023 01:09
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.

2 participants