<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:39:32 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[GODRIVER-2870] Replace uses of &quot;assert&quot; for error checking where &quot;require&quot; is more correct</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2870</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;There are about 1,000 instances where &lt;a href=&quot;https://github.com/search?q=repo%3Amongodb%2Fmongo-go-driver%20assert.Nil&amp;amp;type=code&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;assert.Nil&lt;/a&gt; or &lt;a href=&quot;https://github.com/search?q=repo%3Amongodb%2Fmongo-go-driver+assert.NoError&amp;amp;type=code&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;assert.NoError&lt;/a&gt; are used in Go driver tests. The vast majority of those should probably be using &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/09631fa3b26267e1be80efbae7d849e9bfb8de74/internal/require/require.go#L599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;require.NoError&lt;/a&gt; for 2 reasons:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Using &lt;tt&gt;require&lt;/tt&gt; makes the test stop immediately when an assertion failure is encountered. In the case of an unexpected error, subsequent assertions are likely irrelevant and only confuse whoever troubleshoots the test by printing extra failures instead of highlighting the unexpected error.&lt;/li&gt;
	&lt;li&gt;Using &lt;tt&gt;NoError&lt;/tt&gt; expresses the expected behavior more clearly in the code and in the assertion output.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Replace all uses of &lt;tt&gt;assert.Nil&lt;/tt&gt; or &lt;tt&gt;assert.NoError&lt;/tt&gt; with &lt;tt&gt;require.NoError&lt;/tt&gt; if a returned error would make subsequent assertions meaningless.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2366183">GODRIVER-2870</key>
            <summary>Replace uses of &quot;assert&quot; for error checking where &quot;require&quot; is more correct</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="matt.dale@mongodb.com">Matt Dale</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Jun 2023 23:23:34 +0000</created>
                <updated>Mon, 26 Jun 2023 19:38:31 +0000</updated>
                                                                            <component>Testing</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1vqf4:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>