tests: de-parallelized server tests

This commit is contained in:
Jarek Kowalski
2020-02-22 11:54:09 -08:00
parent 9b50a6e891
commit 3e58911cf3
2 changed files with 2 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ func internalRetry(desc string, attempt AttemptFunc, isRetriableError IsRetriabl
}
}
return nil, errors.Errorf("unable to complete %v despite %v retries", desc, maxAttempts)
return nil, errors.Errorf("unable to complete %v despite %v retries", desc, count)
}
// WithExponentialBackoffNoValue is a shorthand for WithExponentialBackoff except the

View File

@@ -48,8 +48,6 @@ func (s *serverParameters) ProcessOutput(l string) bool {
}
func TestServerStart(t *testing.T) {
t.Parallel()
ctx := context.Background()
e := testenv.NewCLITest(t)
@@ -248,7 +246,7 @@ func verifyServerConnected(t *testing.T, cli *serverapi.Client, want bool) *serv
func waitForSnapshotCount(t *testing.T, cli *serverapi.Client, match *snapshot.SourceInfo, want int) {
t.Helper()
err := retry.PeriodicallyNoValue(1*time.Second, 30, "wait for snapshots", func() error {
err := retry.PeriodicallyNoValue(1*time.Second, 60, "wait for snapshots", func() error {
snapshots, err := cli.ListSnapshots(context.Background(), match)
if err != nil {
return errors.Wrap(err, "error listing sources")