Skip to content

Add testify, and update tests to use it rather than expect #1695

@skelouse

Description

@skelouse

Checklist

  • Are you running the latest v3 release? The list of releases is here.
  • Did you check the manual for your release? The v3 manual is here.
  • Did you perform a search about this feature? Here's the GitHub guide about searching.

What problem does this solve?

Simplifies tests, i.e

if err != nil {
	t.Error(err)
	return
}

Becomes

assert.NilError(t, err)

Solution description

import stretchr/testify in tests and replace value checking in tests with testify

Metadata

Metadata

Assignees

Labels

area/v3relates to / is being considered for v3status/triagemaintainers still need to look into this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions