[#9999] shard: Fix reload test
Some checks failed
DCO action / DCO (pull_request) Successful in 1m6s
Build / Build Components (1.22) (pull_request) Successful in 2m1s
Build / Build Components (1.21) (pull_request) Successful in 2m11s
Tests and linters / Staticcheck (pull_request) Failing after 2m21s
Vulncheck / Vulncheck (pull_request) Successful in 2m19s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m10s
Tests and linters / Tests with -race (pull_request) Failing after 4m32s
Tests and linters / Lint (pull_request) Successful in 5m50s
Tests and linters / Tests (1.22) (pull_request) Failing after 7m16s
Tests and linters / Tests (1.21) (pull_request) Failing after 7m18s
Tests and linters / gopls check (pull_request) Failing after 13m14s

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 fdd39af585
commit 3807285788

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)