Skip to content

Commit 5e84fd3

Browse files
committed
Fix imports
1 parent aa2e889 commit 5e84fd3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

sender_pool_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ import (
3131
"testing"
3232
"time"
3333

34-
"github.com/questdb/go-questdb-client/v3"
3534
qdb "github.com/questdb/go-questdb-client/v3"
3635
"github.com/stretchr/testify/assert"
3736
"github.com/stretchr/testify/require"
3837
)
3938

4039
func TestBasicBehavior(t *testing.T) {
41-
p, err := questdb.PoolFromConf("http::addr=localhost:1234")
40+
p, err := qdb.PoolFromConf("http::addr=localhost:1234")
4241
require.NoError(t, err)
4342
ctx := context.Background()
4443

@@ -83,7 +82,7 @@ func TestFlushOnClose(t *testing.T) {
8382
assert.NoError(t, err)
8483
defer srv.Close()
8584

86-
p, err := questdb.PoolFromOptions(
85+
p, err := qdb.PoolFromOptions(
8786
qdb.WithHttp(),
8887
qdb.WithAddress(srv.Addr()),
8988
qdb.WithAutoFlushDisabled(),
@@ -105,7 +104,7 @@ func TestFlushOnClose(t *testing.T) {
105104
}
106105

107106
func TestPooledSenderDoubleClose(t *testing.T) {
108-
p, err := questdb.PoolFromConf("http::addr=localhost:1234")
107+
p, err := qdb.PoolFromConf("http::addr=localhost:1234")
109108
require.NoError(t, err)
110109

111110
ctx := context.Background()
@@ -123,7 +122,7 @@ func TestPooledSenderDoubleClose(t *testing.T) {
123122

124123
func TestMaxPoolSize(t *testing.T) {
125124
// Create a pool with 2 max senders
126-
p, err := questdb.PoolFromConf("http::addr=localhost:1234", questdb.WithMaxSenders(3))
125+
p, err := qdb.PoolFromConf("http::addr=localhost:1234", qdb.WithMaxSenders(3))
127126
require.NoError(t, err)
128127

129128
ctx := context.Background()
@@ -200,7 +199,7 @@ func TestMultiThreadedPoolWritesOverHttp(t *testing.T) {
200199

201200
wg := &sync.WaitGroup{}
202201

203-
pool, err := questdb.PoolFromConf(fmt.Sprintf("http::addr=%s", srv.Addr()), questdb.WithMaxSenders(maxSenders))
202+
pool, err := qdb.PoolFromConf(fmt.Sprintf("http::addr=%s", srv.Addr()), qdb.WithMaxSenders(maxSenders))
204203
require.NoError(t, err)
205204

206205
for i := 0; i < numThreads; i++ {
@@ -243,9 +242,9 @@ func TestMultiThreadedPoolWritesOverHttp(t *testing.T) {
243242
}
244243

245244
func TestTcpNotSupported(t *testing.T) {
246-
_, err := questdb.PoolFromConf("tcp::addr=localhost:9000")
245+
_, err := qdb.PoolFromConf("tcp::addr=localhost:9000")
247246
assert.ErrorContains(t, err, "tcp/s not supported for pooled senders")
248247

249-
_, err = questdb.PoolFromConf("tcps::addr=localhost:9000")
248+
_, err = qdb.PoolFromConf("tcps::addr=localhost:9000")
250249
assert.ErrorContains(t, err, "tcp/s not supported for pooled senders")
251250
}

0 commit comments

Comments
 (0)