Skip to content

Commit

Permalink
chore: fix lint issues in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Aug 20, 2024
1 parent 5924712 commit b51e30e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gptscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ func TestConfirmDeny(t *testing.T) {

if confirmCallEvent == nil {
t.Fatalf("No confirm call event")
return
}

if !strings.Contains(confirmCallEvent.Input, "\"ls\"") {
Expand Down Expand Up @@ -1055,6 +1056,7 @@ func TestPrompt(t *testing.T) {

if promptFrame == nil {
t.Fatalf("No prompt call event")
return
}

if promptFrame.Sensitive {
Expand Down Expand Up @@ -1126,6 +1128,7 @@ func TestPromptWithMetadata(t *testing.T) {

if promptFrame == nil {
t.Fatalf("No prompt call event")
return
}

if promptFrame.Sensitive {
Expand All @@ -1152,6 +1155,7 @@ func TestPromptWithMetadata(t *testing.T) {
}

// Read the remainder of the events
//nolint:revive
for range run.Events() {
}

Expand Down

0 comments on commit b51e30e

Please sign in to comment.