Skip to content

Commit

Permalink
Make the test more lenient.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Nov 21, 2023
1 parent 4d31e9f commit 20e685b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/aupos.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ int test_auposition(void)
err = aufile_read(af, buffer, &size);
TEST_ERR(err);

TEST_EQUALS(0, size);
/* It's possible we read data up to a ms */
TEST_ASSERT(size < 16);

af = mem_deref(af);

Expand All @@ -50,7 +51,7 @@ int test_auposition(void)

/* 30 ms should be left, at 8000Hz/s, one channels and 16 bit samples
that's 480 bytes */
TEST_EQUALS(480, size);
TEST_ASSERT(size - 480 < 16);


out:
Expand Down

0 comments on commit 20e685b

Please sign in to comment.