@@ -18,18 +18,19 @@ package pkg
1818import (
1919 "context"
2020 "fmt"
21+ "os"
22+ "testing"
23+ "time"
24+
2125 "github.com/linuxsuren/api-testing/pkg/server"
2226 atest "github.com/linuxsuren/api-testing/pkg/testing"
2327 "github.com/linuxsuren/api-testing/pkg/testing/remote"
2428 "github.com/stretchr/testify/assert"
2529 "google.golang.org/protobuf/types/known/timestamppb"
26- "os"
27- "testing"
28- "time"
2930)
3031
3132func TestNewRemoteServer (t * testing.T ) {
32- remoteServer := NewRemoteServer ()
33+ remoteServer := NewRemoteServer (10 )
3334 assert .NotNil (t , remoteServer )
3435 defaultCtx := context .Background ()
3536
@@ -120,7 +121,7 @@ func TestNewRemoteServer(t *testing.T) {
120121 })
121122
122123 t .Run ("invalid orm driver" , func (t * testing.T ) {
123- remoteServer := NewRemoteServer ()
124+ remoteServer := NewRemoteServer (10 )
124125 assert .NotNil (t , remoteServer )
125126 defaultCtx := remote .WithIncomingStoreContext (context .TODO (), & atest.Store {
126127 Properties : map [string ]string {
@@ -132,7 +133,7 @@ func TestNewRemoteServer(t *testing.T) {
132133 })
133134
134135 t .Run ("invalid mysql config" , func (t * testing.T ) {
135- remoteServer := NewRemoteServer ()
136+ remoteServer := NewRemoteServer (10 )
136137 assert .NotNil (t , remoteServer )
137138 defaultCtx := remote .WithIncomingStoreContext (context .TODO (), & atest.Store {
138139 Properties : map [string ]string {
@@ -144,7 +145,7 @@ func TestNewRemoteServer(t *testing.T) {
144145 })
145146
146147 t .Run ("invalid postgres config" , func (t * testing.T ) {
147- remoteServer := NewRemoteServer ()
148+ remoteServer := NewRemoteServer (10 )
148149 assert .NotNil (t , remoteServer )
149150 defaultCtx := remote .WithIncomingStoreContext (context .TODO (), & atest.Store {
150151 Properties : map [string ]string {
@@ -158,7 +159,7 @@ func TestNewRemoteServer(t *testing.T) {
158159}
159160
160161func TestSQLite (t * testing.T ) {
161- remoteServer := NewRemoteServer ()
162+ remoteServer := NewRemoteServer (10 )
162163 assert .NotNil (t , remoteServer )
163164 defaultCtx := remote .WithIncomingStoreContext (context .TODO (), & atest.Store {
164165 Properties : map [string ]string {
0 commit comments