mirror of
https://github.com/restic/restic.git
synced 2024-12-23 16:26:11 +00:00
fix flaky key test
This commit is contained in:
parent
f144920ed5
commit
d08549f0ae
1 changed files with 1 additions and 1 deletions
|
@ -1040,7 +1040,7 @@ func testRunKeyAddNewKeyUserHost(t testing.TB, gopts GlobalOptions) {
|
||||||
|
|
||||||
repo, err := OpenRepository(gopts)
|
repo, err := OpenRepository(gopts)
|
||||||
rtest.OK(t, err)
|
rtest.OK(t, err)
|
||||||
key, err := repository.SearchKey(gopts.ctx, repo, testKeyNewPassword, 1, "")
|
key, err := repository.SearchKey(gopts.ctx, repo, testKeyNewPassword, 2, "")
|
||||||
rtest.OK(t, err)
|
rtest.OK(t, err)
|
||||||
|
|
||||||
rtest.Equals(t, "john", key.Username)
|
rtest.Equals(t, "john", key.Username)
|
||||||
|
|
Loading…
Reference in a new issue