Skip to content

Commit 905a864

Browse files
author
Divjot Arora
committed
fix rebase conflicts and remove ctx from newConnection call in test
1 parent 4067b00 commit 905a864

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

x/mongo/driver/topology/connection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestConnection(t *testing.T) {
9090
handshakerError := errors.New("handshaker error")
9191
var got error
9292

93-
conn, err := newConnection(context.Background(), address.Address(""),
93+
conn, err := newConnection(address.Address(""),
9494
WithHandshaker(func(Handshaker) Handshaker {
9595
return &testHandshaker{
9696
getDescription: func(context.Context, address.Address, driver.Connection) (description.Server, error) {

x/mongo/driver/topology/server_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,7 @@ func TestServer(t *testing.T) {
237237
s.pool.connected = connected
238238

239239
wce := driver.WriteConcernError{}
240-
<<<<<<< HEAD
241240
s.ProcessError(&wce, initConnection{})
242-
=======
243-
// Use initConnection as it always returns false for Stale().
244-
s.ProcessError(wce, initConnection{})
245-
>>>>>>> 1b2c6365... GODRIVER-1489 Implement streaming heartbeat protocol
246241

247242
// should not be a LastError
248243
require.Nil(t, s.Description().LastError)

0 commit comments

Comments
 (0)