Skip to content

GODRIVER-3036 Add prose test for ServerHeartbeatStartedEvent. #1534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2024

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
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