Skip to content

Commit

Permalink
Fix a test failure due to size change
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Jan 31, 2023
1 parent c4c5ddd commit 4043a5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py/server/tests/test_dbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def test_read_odbc(self):
with turbodbc.connect(connection_string=connection_string) as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT t_ts, t_id, t_instrument, t_exchange, t_price, t_size FROM CRYPTO_TRADES"
" LIMIT 1000")
" LIMIT 10")
table = dhodbc.read_cursor(cursor)
self.assertEqual(table.size, 1000)
self.assertEqual(table.size, 10)

def test_read_adbc(self):
import adbc_driver_postgresql.dbapi
Expand All @@ -28,9 +28,9 @@ def test_read_adbc(self):
with adbc_driver_postgresql.dbapi.connect(uri) as conn:
with conn.cursor() as cursor:
cursor.execute("SELECT t_ts, t_exchange, t_price, t_size FROM CRYPTO_TRADES "
"LIMIT 1000")
"LIMIT 10")
table = dhadbc.read_cursor(cursor)
self.assertEqual(table.size, 1000)
self.assertEqual(table.size, 10)


if __name__ == '__main__':
Expand Down

0 comments on commit 4043a5f

Please sign in to comment.