Merge pull request 'update test' (#17) from toml into master
All checks were successful
Go Action / goaction (push) Successful in 28s
All checks were successful
Go Action / goaction (push) Successful in 28s
Reviewed-on: #17
This commit was merged in pull request #17.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user