Skip to content

Commit d2a0682

Browse files
DABHCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 85e66de commit d2a0682

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

googleadk/chat/workflow_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ func (m *recordingModel) contentsAt(turn int) int {
5555
// rejected or completes with an error.
5656
func failOnReject(t *testing.T) *testsuite.TestUpdateCallback {
5757
return &testsuite.TestUpdateCallback{
58-
OnAccept: func() {},
59-
OnReject: func(err error) { t.Errorf("update rejected: %v", err) },
60-
OnComplete: func(_ interface{}, err error) {},
58+
OnAccept: func() {},
59+
OnReject: func(err error) { t.Errorf("update rejected: %v", err) },
60+
OnComplete: func(_ interface{}, err error) {
61+
if err != nil {
62+
t.Errorf("update completed with error: %v", err)
63+
}
64+
},
6165
}
6266
}
6367

0 commit comments

Comments
 (0)