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
|
package logs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParseLogDetails parses a string of key value pairs in the form
|
// 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) {
|
t.Run(tc.line, func(t *testing.T) {
|
||||||
actual, err := ParseLogDetails(tc.line)
|
actual, err := ParseLogDetails(tc.line)
|
||||||
if tc.expectedErr != "" {
|
if tc.expectedErr != "" {
|
||||||
assert.Check(t, is.ErrorContains(err, tc.expectedErr))
|
assert.Check(t, is.Error(err, tc.expectedErr))
|
||||||
} else {
|
} else {
|
||||||
assert.Check(t, err)
|
assert.Check(t, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user