MCPcopy
hub / github.com/kopia/kopia / lockRepositoryForUpgrade

Function lockRepositoryForUpgrade

cli/command_repository_upgrade_test.go:200–209  ·  view source on GitHub ↗
(t *testing.T, env *testenv.CLITest)

Source from the content-addressed store, hash-verified

198}
199
200func lockRepositoryForUpgrade(t *testing.T, env *testenv.CLITest) {
201 t.Helper()
202
203 t.Log("Placing upgrade lock ...")
204 env.RunAndExpectSuccess(t, "repository", "upgrade", "begin",
205 "--upgrade-owner-id", "owner",
206 "--io-drain-timeout", "30s", "--allow-unsafe-upgrade",
207 "--status-poll-interval", "1s", "--lock-only",
208 "--max-permitted-clock-drift", "1s")
209}
210
211func (s *formatSpecificTestSuite) TestRepositoryUpgradeStatusWhileLocked(t *testing.T) {
212 t.Parallel()

Calls 3

HelperMethod · 0.80
LogMethod · 0.80
RunAndExpectSuccessMethod · 0.65

Tested by

no test coverage detected