service/logs: remove pkg/errors, and minor cleanups
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2eec74659e
commit
1bd58b0936
@ -3,10 +3,9 @@
|
||||
package logs
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// ParseLogDetails parses a string of key value pairs in the form
|
||||
|
@ -50,7 +50,7 @@ func TestParseLogDetails(t *testing.T) {
|
||||
t.Run(tc.line, func(t *testing.T) {
|
||||
actual, err := ParseLogDetails(tc.line)
|
||||
if tc.expectedErr != "" {
|
||||
assert.Check(t, is.ErrorContains(err, tc.expectedErr))
|
||||
assert.Check(t, is.Error(err, tc.expectedErr))
|
||||
} else {
|
||||
assert.Check(t, err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user