use legacy error check in the common.TestSleep
This commit is contained in:
parent
34df4904f6
commit
baf3495197
|
@ -2,7 +2,6 @@ package common_test
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
@ -14,7 +13,7 @@ func TestSleep(test *testing.T) {
|
|||
var t = func(name string, ctx context.Context, expected error) {
|
||||
test.Run(name, func(test *testing.T) {
|
||||
var err = common.Sleep(ctx, dt)
|
||||
if !errors.Is(err, expected) {
|
||||
if err != expected {
|
||||
test.Errorf("expected %v, got %v", expected, err)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue