Skip to content

Consistently use github.com/stretchr/testify/require #2639

@ainar-g

Description

@ainar-g

Instead of writing:

if !assert.Equal(t, want, got) {
        return
}

We should probably just write:

require.Equal(t, want, got)

This will stop the test if want is not equal to got, which is probably what we want in most cases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions