2 Commits

Author SHA1 Message Date
cc252cc858 Merge pull request 'update test' (#17) from toml into master
All checks were successful
Go Action / goaction (push) Successful in 28s
Reviewed-on: #17
2025-12-27 10:44:11 +03:00
1e0f4490ba update test
All checks were successful
Go Action / goaction (push) Successful in 27s
Go Action / goaction (pull_request) Successful in 28s
2025-12-27 10:43:31 +03:00
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)
},
}
}