mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
remove other print and tweak backup test timings
This commit is contained in:
parent
bb39b05d05
commit
fe54cbf8ae
2 changed files with 1 additions and 2 deletions
|
|
@ -66,7 +66,6 @@ type InternalClientOption func(c *InternalClient)
|
|||
// retry failed requests using exponential backoff.
|
||||
func WithClientRetryPeriod(waitMax time.Duration) InternalClientOption {
|
||||
return func(c *InternalClient) {
|
||||
fmt.Println("client w/ retry policy", waitMax)
|
||||
rc := retryablehttp.NewClient()
|
||||
rc.HTTPClient = c.httpClient
|
||||
rc.RetryWaitMax = waitMax
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ func TestClusterStuff(t *testing.T) {
|
|||
t.Fatalf("sending stop command: %v", err)
|
||||
}
|
||||
if backupCmd, err = startCmd(
|
||||
"featurebase", "backup", "--host=pilosa1:10101", fmt.Sprintf("--output=%s", tmpdir+"/backuptest2"), "--retry-period=0.5s"); err != nil {
|
||||
"featurebase", "backup", "--host=pilosa1:10101", fmt.Sprintf("--output=%s", tmpdir+"/backuptest2"), "--retry-period=50ms"); err != nil {
|
||||
t.Fatalf("sending second backup command: %v", err)
|
||||
}
|
||||
time.Sleep(time.Millisecond * 5) // want the backup to get started, then fail
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue