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

Commit 42e024e

Browse files
committed
fixup! fixup! fixup! Add integration tests for Secrets commands
1 parent 1721f7a commit 42e024e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/tcli/tcli.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,16 @@ type Assertable struct {
163163
}
164164

165165
// Assert runs the Assertable and
166-
func (a Assertable) Assert(t *testing.T, option ...Assertion) {
166+
func (a *Assertable) Assert(t *testing.T, option ...Assertion) {
167167
slog.Helper()
168168
var (
169169
stdout bytes.Buffer
170170
stderr bytes.Buffer
171171
result CommandResult
172172
)
173+
if a.cmd == nil {
174+
slogtest.Fatal(t, "test failed to initialize: no command specified")
175+
}
173176

174177
a.cmd.Stdout = &stdout
175178
a.cmd.Stderr = &stderr

0 commit comments

Comments
 (0)