Skip to content

Commit

Permalink
del shadow var
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis committed Apr 14, 2024
1 parent 7d3acb4 commit 2bc0221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/table/scanner/result_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ func TestNewStreamWithRecvFirstResultSet(t *testing.T) {
require.True(t, err == io.EOF) //nolint:errorlint,testifylint
require.Equal(t, 1001, tt.recvCounter)

val, ok = result.(*streamResult)
valC, ok := result.(*streamResult)
if !ok {
panic(fmt.Sprintf("unsupported type conversion from %T to *streamResult", val))
panic(fmt.Sprintf("unsupported type conversion from %T to *streamResult", valC))
}
require.Equal(t, 1002, int(val.nextResultSetCounter.Load()))
require.Equal(t, 1002, int(valC.nextResultSetCounter.Load()))
}
})
}
Expand Down

0 comments on commit 2bc0221

Please sign in to comment.