mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user