Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 30, 2024
1 parent db54101 commit cd6875b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/sqlite_virtual_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ def test_where_id

def test_create_returning_id
item = SqliteVecItem.create!(embedding: [1, 2, 3])
# TODO figure out why id not set
assert_nil item.id
if ActiveRecord::VERSION::STRING.to_f >= 7.1
# TODO figure out why id not set
assert_nil item.id
else
assert_kind_of Integer, item.id
end
assert_kind_of Integer, SqliteVecItem.last.id
end
end

0 comments on commit cd6875b

Please sign in to comment.