Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

chore: migrate more tests from tcli to in-mem #297

Merged
merged 5 commits into from
Mar 22, 2021
Merged

chore: migrate more tests from tcli to in-mem #297

merged 5 commits into from
Mar 22, 2021

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Mar 22, 2021

No description provided.

@cmoog cmoog requested review from fuskovic and f0ssel March 22, 2021 15:27
}
if org == nil {
slogtest.Fatal(t, "failed to find org of current user")
return // help the linter out a bit
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems strange to have a return after a fatal but I guess there's something going on with the linter that's not obvious to me. The comment doesn't help explain why so I think we can just elaborate on the comment or just add a nolint. Either way no big deal just my general thoughts reading.

@@ -146,6 +146,10 @@ func execute(t *testing.T, in io.Reader, args ...string) result {
cmd.SetOut(&outStream)
cmd.SetErr(&errStream)

// TODO: this *needs* to be moved to function scoped writer arg. As is,
// this prevents tests from running in parallel.
Copy link
Contributor

Choose a reason for hiding this comment

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

good to know

Co-authored-by: Faris Huskovic <faris@coder.com>
@cmoog cmoog merged commit 709ca79 into master Mar 22, 2021
@cmoog cmoog deleted the cmoog/no-tcli branch March 22, 2021 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants