Skip to content

Commit

Permalink
fix: updates the test logic for close of QueryContext (#183)
Browse files Browse the repository at this point in the history
* fix(ksql/v1): updates the logic for test of close

Signed-off-by: re-Tick <[email protected]>

---------

Signed-off-by: re-Tick <[email protected]>
  • Loading branch information
re-Tick authored Apr 2, 2023
1 parent d9d4122 commit 3a318c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions integrations/ksql/v1/queryerContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ func (r Rows) Close() error {
switch mode {
case keploy.MODE_TEST:
// don't run actual rows.Close
// ignore the rows.Close which is not done manually.
if kctx.Deps == nil || len(kctx.Deps) == 0 || len(kctx.Deps[0].Data) != 1 {
return nil
}
case keploy.MODE_RECORD:
if r.Rows != nil {
err = r.Rows.Close()
Expand Down

0 comments on commit 3a318c2

Please sign in to comment.