mirror of https://github.com/status-im/consul.git
remove t.Parallel()
This commit is contained in:
parent
0e64d73f83
commit
aa1875c3c7
|
@ -10,8 +10,6 @@ import (
|
|||
)
|
||||
|
||||
func TestErrIsEOF(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var tests = []struct {
|
||||
name string
|
||||
err error
|
||||
|
@ -23,15 +21,12 @@ func TestErrIsEOF(t *testing.T) {
|
|||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
require.True(t, IsErrEOF(tt.err))
|
||||
})
|
||||
t.Run(fmt.Sprintf("Wrapped %s", tt.name), func(t *testing.T) {
|
||||
t.Parallel()
|
||||
require.True(t, IsErrEOF(fmt.Errorf("test: %w", tt.err)))
|
||||
})
|
||||
t.Run(fmt.Sprintf("String suffix is %s", tt.name), func(t *testing.T) {
|
||||
t.Parallel()
|
||||
require.True(t, IsErrEOF(fmt.Errorf("rpc error: %s", tt.err.Error())))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue