update test
All checks were successful
Go Action / goaction (push) Successful in 27s
Go Action / goaction (pull_request) Successful in 28s

This commit is contained in:
2025-12-27 10:43:31 +03:00
parent 954187a07a
commit 1e0f4490ba
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ func (p *provider) Value(context.Context, ...string) (config.Value, error) {
func TestWatcher(t *testing.T) {
t.Parallel()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer func() {
cancel()
@@ -41,7 +41,7 @@ func TestWatcher(t *testing.T) {
prov := &provider{}
w := watcher.New(time.Second, prov)
w := watcher.New(time.Second/3, prov)
wg := sync.WaitGroup{}
wg.Add(2)

View File

@@ -134,7 +134,7 @@ func NewErrorIs(exErr error, path ...string) Read {
Assert: func(*testing.T, config.Value) {},
Error: func(t *testing.T, err error) {
t.Helper()
require.ErrorIsf(t, exErr, err, "except err %v != %v", exErr, err)
require.ErrorIs(t, err, exErr)
},
}
}