Skip to content

Commit

Permalink
Fix testing type on new helper funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
davemay99 committed Jun 11, 2021
1 parent 6f15007 commit 27730d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func WaitForRunning(t testing.TB, rpc rpcFn, job *structs.Job) []*structs.AllocL
}

// WaitForFiles blocks until all the files in the slice are present
func WaitForFiles(t testing.T, files []string) {
func WaitForFiles(t testing.TB, files []string) {
WaitForResult(func() (bool, error) {
return FilesExist(files), nil
}, func(err error) {
Expand All @@ -241,7 +241,7 @@ func WaitForFiles(t testing.T, files []string) {
}

// WaitForFilesUntil blocks until duration or all the files in the slice are present
func WaitForFilesUntil(t testing.T, files []string, until time.Duration) {
func WaitForFilesUntil(t testing.TB, files []string, until time.Duration) {
WaitForResultUntil(until, func() (bool, error) {
return FilesExist(files), nil
}, func(err error) {
Expand Down

0 comments on commit 27730d4

Please sign in to comment.