Skip to content

Commit e8494d9

Browse files
committed
Add cassandra ReconnectInterval test.
Signed-off-by: Brendan Shaklovitz <nyanshak@users.noreply.github.com>
1 parent d8e6faa commit e8494d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/storage/cassandra/options_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func TestOptions(t *testing.T) {
4141
assert.Equal(t, primary.Keyspace, aux.Keyspace)
4242
assert.Equal(t, primary.Servers, aux.Servers)
4343
assert.Equal(t, primary.ConnectionsPerHost, aux.ConnectionsPerHost)
44+
assert.Equal(t, primary.ReconnectInterval, aux.ReconnectInterval)
4445
}
4546

4647
func TestOptionsWithFlags(t *testing.T) {
@@ -50,6 +51,7 @@ func TestOptionsWithFlags(t *testing.T) {
5051
"--cas.keyspace=jaeger",
5152
"--cas.servers=1.1.1.1,2.2.2.2",
5253
"--cas.connections-per-host=42",
54+
"--cas.reconnect-interval=42s",
5355
"--cas.max-retry-attempts=42",
5456
"--cas.timeout=42s",
5557
"--cas.port=4242",
@@ -75,6 +77,7 @@ func TestOptionsWithFlags(t *testing.T) {
7577
assert.Equal(t, 42, aux.ConnectionsPerHost)
7678
assert.Equal(t, 42, aux.MaxRetryAttempts)
7779
assert.Equal(t, 42*time.Second, aux.Timeout)
80+
assert.Equal(t, 42*time.Second, aux.ReconnectInterval)
7881
assert.Equal(t, 4242, aux.Port)
7982
assert.Equal(t, "", aux.Consistency, "aux storage does not inherit consistency from primary")
8083
assert.Equal(t, 3, aux.ProtoVersion)

0 commit comments

Comments
 (0)