[#9999] shard: Fix reload test
Some checks failed
DCO action / DCO (pull_request) Successful in 1m21s
Tests and linters / Staticcheck (pull_request) Failing after 1m47s
Build / Build Components (1.21) (pull_request) Successful in 1m58s
Build / Build Components (1.22) (pull_request) Successful in 2m0s
Tests and linters / Lint (pull_request) Successful in 3m39s
Tests and linters / gopls check (pull_request) Failing after 3m52s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m29s
Tests and linters / Tests (1.22) (pull_request) Failing after 7m58s
Tests and linters / Tests (1.21) (pull_request) Failing after 7m59s
Tests and linters / Tests with -race (pull_request) Failing after 8m14s
Vulncheck / Vulncheck (pull_request) Failing after 12m2s

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-07-30 11:41:47 +03:00
parent 3e00dc304c
commit 2ca4d4ca6b

View file

@ -111,6 +111,7 @@ func TestShardReload(t *testing.T) {
t.Run("reload failed", func(t *testing.T) {
badPath := filepath.Join(p, "meta3")
require.NoError(t, os.RemoveAll(badPath))
require.NoError(t, os.WriteFile(badPath, []byte{1}, 0))
newOpts = newShardOpts(badPath, true)