Skip to content

Commit dcfc4ea

Browse files
committed
Enable tests
1 parent 3fdbd41 commit dcfc4ea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/shared/pkg/atomicbitset/roaring.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (r *Roaring) Has(i uint) bool {
3232
}
3333

3434
r.mu.RLock()
35-
v := r.bm.ContainsInt(int(i))
35+
v := r.bm.Contains(uint32(i))
3636
r.mu.RUnlock()
3737

3838
return v
@@ -60,14 +60,14 @@ func (r *Roaring) HasRange(lo, hi uint) bool {
6060
}
6161

6262
func (r *Roaring) SetRange(lo, hi uint) {
63-
if lo >= hi {
64-
return
65-
}
66-
6763
if hi > r.n {
6864
hi = r.n
6965
}
7066

67+
if lo >= hi {
68+
return
69+
}
70+
7171
r.mu.Lock()
7272
r.bm.AddRange(uint64(lo), uint64(hi))
7373
r.mu.Unlock()

tests/integration/internal/tests/orchestrator/filesystem_pause_resume_integrity_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ PY`, filePath))
192192
expectedHash := exec(`sha256sum "` + filePath + `" | awk '{print $1}'`)
193193
expectedSize := exec(`stat -c %s "` + filePath + `"`)
194194

195-
cycles := getenvInt(t, "TESTS_FS_INTEGRITY_TRUNCATE_CYCLES", 1)
195+
cycles := getenvInt(t, "TESTS_FS_INTEGRITY_TRUNCATE_CYCLES", 10)
196196

197197
for i := range cycles {
198198
pause()

0 commit comments

Comments
 (0)