Skip to content

Conversation

@qingyang-hu
Copy link
Collaborator

GODRIVER-3036

Summary

This RP adds a prose test to ensure that ServerHeartbeatStartedEvent is emitted before the monitoring connection is established.

Background & Motivation

Heartbeat Tests: https://github.com/mongodb/specifications/tree/master/source/server-discovery-and-monitoring/tests#heartbeat-tests

@qingyang-hu qingyang-hu requested a review from a team as a code owner January 31, 2024 00:13
@qingyang-hu qingyang-hu requested review from prestonvasquez and removed request for a team January 31, 2024 00:13
@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

./bson

incompatible changes

##NewDecoder: changed from func(./bson/bsonrw.ValueReader) *Decoder to func(./bson/bsonrw.ValueReader) (*Decoder, error)

./bson/bsonrw

incompatible changes

NewExtJSONValueWriter: changed from func(io.Writer, bool, bool) ValueWriter to func(io.Writer, bool, bool) (ValueWriter, error)
NewValueReader: removed
NewValueWriter: removed

compatible changes

NewBSONDocumentReader: added
NewBSONValueWriter: added

prestonvasquez
prestonvasquez previously approved these changes Feb 1, 2024
Copy link
Member

@prestonvasquez prestonvasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Comment on lines 224 to 226
go func() {
require.NoError(t, server.Connect(nil))
}()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go func() {
require.NoError(t, server.Connect(nil))
}()
require.NoError(t, server.Connect(nil))

There is no need to connect asynchronously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants