Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests fail when using small key #385

Open
Ngoguey42 opened this issue Apr 12, 2022 · 0 comments
Open

Unit tests fail when using small key #385

Ngoguey42 opened this issue Apr 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Ngoguey42
Copy link

Ngoguey42 commented Apr 12, 2022

Changing module String_size = struct let length = 20 end in

let length = 20
to a small value breaks the unit tests:

length = 3 or more doesn't fail the tests.

length = 2 sometimes fails these unit tests:

  [FAIL]        live                    3   fail add (key).
  [FAIL]        close                   1   close and reopen more.

length = 1 sometimes fails these unit tests:

  [FAIL]        close                   1   close and reopen more.
  [FAIL]        close                   2   crash and continue.
  [FAIL]        merge                   2   interleaved merge.
  [FAIL]        merge                   3   write at the end of merge.
  [FAIL]        flush_callback          2   replace.

length = 0 always fails all tests except the io_array ones

@Ngoguey42 Ngoguey42 added the bug Something isn't working label Apr 12, 2022
@Ngoguey42 Ngoguey42 changed the title Index fails with small values Index fails with small key/value Apr 12, 2022
@Ngoguey42 Ngoguey42 changed the title Index fails with small key/value Unit tests fail when using small key Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant