[GODRIVER-768] documentation example test failing Created: 15/Jan/19  Updated: 28/Oct/23  Resolved: 12/Feb/19

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

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


 Description   

I get this error when running the docs examples test

~/go/examples $ go test

— FAIL: TestDocumentationExamples (0.77s)

        Error Trace:    examples.go:1119

            examples_test.go:33

Error:      Received unexpected error:

            argument to Decode must be a pointer to a type, but got bson.Document{}

FAIL

exit status 1

FAIL _/Users/skersch/go/examples 0.780s

 

Note that these tests were run with context.TODO() in lieu of context.Background()

 



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

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@10gen.com', 'username': 'iwysiu'}

Message: Update Makefile to run examples and fix bugs in examples

GODRIVER-787
GODRIVER-768

Change-Id: Ie8bd245045eda0ed7bc7baadeef533f6aceacc3b
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/cabca31b05b207a4550817e57a5cc3d592af5617

Comment by Githook User [ 31/Jan/19 ]

Author:

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

Message: Update Makefile to run examples and fix bugs in examples.

GODRIVER-787
GODRIVER-768

Change-Id: I6bc92ef60fbc24d6224c40a99e24bc8cd9240107
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/0cb0bd09b2e0c48361705f2b137167d674d85ff6

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