test: fix flakiness around tar block size in test (#21854)

So 1000 bytes and 1001 bytes is both 1024 bytes

Closes
https://github.com/coder/internal/issues/1324#issuecomment-3836984358
This commit is contained in:
Steven Masley
2026-02-02 12:58:43 -06:00
committed by GitHub
parent 885aeed91b
commit 956e123d96
@@ -200,7 +200,7 @@ func TestGetModulesArchive(t *testing.T) {
require.Empty(t, skipped)
actualSize := int64(len(archive))
originalDef["extra"] = moduleDef{payload: bytes.Repeat([]byte("X"), 1001)}
originalDef["extra"] = moduleDef{payload: bytes.Repeat([]byte("X"), 2000)}
memFS = moduleArchiveFS(t, originalDef)
// Now test with exact size - should just fit