diff --git a/go.mod b/go.mod index 337dde9..39b6597 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/cenkalti/backoff/v4 v4.3.0 github.com/creasty/defaults v1.8.0 github.com/ethpandaops/ethwallclock v0.4.0 - github.com/ethpandaops/xatu v1.24.4-0.20261008044555-a71a264dc8d7 + github.com/ethpandaops/xatu v1.25.0 github.com/glebarez/sqlite v1.10.0 github.com/go-co-op/gocron v1.37.0 github.com/go-faster/errors v0.7.1 diff --git a/go.sum b/go.sum index 204e44c..84b9434 100644 --- a/go.sum +++ b/go.sum @@ -196,6 +196,8 @@ github.com/ethpandaops/xatu v1.24.4-0.20261007033258-20c9c651e62c h1:BqblsGPJvC9 github.com/ethpandaops/xatu v1.24.4-0.20261007033258-20c9c651e62c/go.mod h1:dUHUlJktAVaFBPN6zYSWgakJov/jcnpRYSZzGQwq8ug= github.com/ethpandaops/xatu v1.24.4-0.20261008044555-a71a264dc8d7 h1:KcSI+WZ/kbEEGQIc5L6pqTGM/3QGJomPQrPZSI1GM3I= github.com/ethpandaops/xatu v1.24.4-0.20261008044555-a71a264dc8d7/go.mod h1:ntnC7nu9jGEguwMSn/36cfwYQZMgtku/AuMgkma03xs= +github.com/ethpandaops/xatu v1.25.0 h1:i5lz6wqVCikc28CKlyhteKiPeCA0WRrL3/qnTsGSIV4= +github.com/ethpandaops/xatu v1.25.0/go.mod h1:ntnC7nu9jGEguwMSn/36cfwYQZMgtku/AuMgkma03xs= github.com/failsafe-go/failsafe-go v0.9.6 h1:vPSH2cry0Ee5cnR9wc9qshCDO6jdrMA9elBJNwyo4Uk= github.com/failsafe-go/failsafe-go v0.9.6/go.mod h1:IeRpglkcwzKagjDMh90ZhN2l4Ovt3+jemQBUbThag54= github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w= diff --git a/web/src/utils/__tests__/functions.test.ts b/web/src/utils/__tests__/functions.test.ts index 14f7282..d247eab 100644 --- a/web/src/utils/__tests__/functions.test.ts +++ b/web/src/utils/__tests__/functions.test.ts @@ -64,9 +64,9 @@ describe('functions', () => { it('should return different numbers for multiple calls within the same range', () => { const min = 1; const max = 100; - const result1 = randomInt(min, max); - const result2 = randomInt(min, max); - expect(result1).not.toBe(result2); + // Two draws collide 1% of the time; 50 draws all being equal is negligible. + const results = new Set(Array.from({ length: 50 }, () => randomInt(min, max))); + expect(results.size).toBeGreaterThan(1); }); });