[GODRIVER-811] Modify change stream test to only run if WireVersion < 8 Created: 06/Feb/19  Updated: 28/Oct/23  Resolved: 08/Feb/19

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The TestReplaceRoot change stream test fails on latest server versions as per https://jira.mongodb.org/browse/SPEC-1211. We can either change the assertion to expect a general error rather than ErrMissingResumeToken specifically, but this means we will be making a weaker assertion for wire versions 7 and below. Seeing as the server will now error if _id is projected out, it might be better to only run the test for valid wire versions and leave the check as is.



 Comments   
Comment by Githook User [ 08/Feb/19 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: Change error assertion for TestReplaceRoot change stream test.

GODRIVER-811

Change-Id: I962dc2917394cbe364f044c218fe1ab0d08859fb
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/9a7709fd712b319982460caa0aa95bbd3a928621

Comment by Divjot Arora (Inactive) [ 06/Feb/19 ]

code review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/443636

Generated at Thu Feb 08 08:35:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.