mirror of
https://github.com/kopia/kopia.git
synced 2026-10-21 05:34:42 -04:00
fix(testing): fixed robustness tests (#1661)
Fixes #1660 Broken by #1644
This commit is contained in:
1 parent
0f4eb06369
commit
aeb483a081
1 file changed
+4
-8
@@ -29,8 +29,7 @@ const (
|
||||
retryCount = 180
|
||||
retryInterval = 1 * time.Second
|
||||
waitingForServerString = "waiting for server to start"
|
||||
serverUser = "server-user@host"
|
||||
serverPassword = "abcdef"
|
||||
serverControlPassword = "abcdef"
|
||||
|
||||
// Flag value settings.
|
||||
contentCacheSizeSettingMB = 500
|
||||
@@ -212,8 +211,7 @@ func (ks *KopiaSnapshotter) CreateServer(addr string, args ...string) (*exec.Cmd
|
||||
args = append([]string{
|
||||
"server", "start",
|
||||
"--address", addr,
|
||||
"--server-username", serverUser,
|
||||
"--server-password", serverPassword,
|
||||
"--server-control-password", serverControlPassword,
|
||||
}, args...)
|
||||
|
||||
return ks.Runner.RunAsync(args...)
|
||||
@@ -257,8 +255,7 @@ func (ks *KopiaSnapshotter) RefreshServer(addr, fingerprint string, args ...stri
|
||||
"server", "refresh",
|
||||
"--address", addr,
|
||||
"--server-cert-fingerprint", fingerprint,
|
||||
"--server-username", serverUser,
|
||||
"--server-password", serverPassword,
|
||||
"--server-control-password", serverControlPassword,
|
||||
}, args...)
|
||||
_, _, err := ks.Runner.Run(args...)
|
||||
|
||||
@@ -344,8 +341,7 @@ func (ks *KopiaSnapshotter) waitUntilServerStarted(ctx context.Context, addr, fi
|
||||
"server", "status",
|
||||
"--address", addr,
|
||||
"--server-cert-fingerprint", fingerprint,
|
||||
"--server-username", serverUser,
|
||||
"--server-password", serverPassword,
|
||||
"--server-control-password", serverControlPassword,
|
||||
}, serverStatusArgs...)
|
||||
|
||||
if err := retry.PeriodicallyNoValue(ctx, retryInterval, retryCount, waitingForServerString, func() error {
|
||||
|
||||
Reference in new issue
Block a user