Skip to content

Commit 53a9a1d

Browse files
authored
Merge pull request #210 from datastax/ruby-235_tests
[RUBY-235] Integration tests for execution info retries
2 parents ac831f8 + aec9f42 commit 53a9a1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

integration/idempotency_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_statement_idempotency_on_timeout
6262
end
6363

6464
info = session.execute('SELECT * FROM test', consistency: :one, idempotent: true).execution_info
65+
assert_equal 1, info.retries
6566
assert_equal 2, info.hosts.size
6667
assert_equal '127.0.0.1', info.hosts[0].ip.to_s
6768
assert_equal '127.0.0.2', info.hosts[1].ip.to_s
@@ -101,6 +102,7 @@ def test_statement_idempotency_on_timeout_no_keyspace_predefined
101102
end
102103

103104
info = session.execute('SELECT * FROM simplex.test', consistency: :one, idempotent: true).execution_info
105+
assert_equal 1, info.retries
104106
assert_equal 2, info.hosts.size
105107
assert_equal '127.0.0.1', info.hosts[0].ip.to_s
106108
assert_equal '127.0.0.2', info.hosts[1].ip.to_s

0 commit comments

Comments
 (0)