mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Refactor: remove `FunctionalTestSdkSuite` base struct and move SDK client and worker to `FunctionalTestBase`. ## Why? Many poller based tests use SDK client/worker for various operations. It is much more convenient to have them defined in the top level base class. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
13 lines
325 B
Go
13 lines
325 B
Go
package testcore
|
|
|
|
import "time"
|
|
|
|
const (
|
|
DefaultPageSize = 5
|
|
PprofTestPort = 7000
|
|
TlsCertCommonName = "my-common-name"
|
|
ClientSuiteLimit = 10
|
|
// TODO (alex): replace all sleeps with WaitForESToSettle with s.Eventually()
|
|
WaitForESToSettle = 4 * time.Second // wait es shards for some time ensure data consistent
|
|
)
|