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

fix: some broken tests #2249

Merged
merged 2 commits into from
Dec 12, 2023
Merged

fix: some broken tests #2249

merged 2 commits into from
Dec 12, 2023

Conversation

universalmind303
Copy link
Contributor

Turns out we weren't actually running any of the tests in glaredb/tests. This fixes some issues that were identified when running those tests.

Additionally updates the unit test command to properly run all unit tests.

Comment on lines +54 to +68
match (&command, cli.log_mode, cli.verbose) {
(
// User specified a log file, so we should use it.
Commands::Local(LocalArgs {
log_file: Some(log_file),
..
}),
_,
_,
) => logutil::init(
cli.verbose,
// Use JSON logging by default when writing to a file.
cli.log_mode.unwrap_or(LoggingMode::Json).into(),
Some(log_file),
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we weren't actually running the tests in this crate, there was a regression in #2187 that went unnoticed.

@universalmind303 universalmind303 enabled auto-merge (squash) December 12, 2023 19:22
@universalmind303 universalmind303 merged commit 7706b81 into main Dec 12, 2023
10 checks passed
@universalmind303 universalmind303 deleted the fix-testrunner branch December 12, 2023 19:33
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