Skip to content

Commit 28325fb

Browse files
author
Vincent Dupont
committed
fixup! fixup! unittests: add spiffs unittests
1 parent 10e714b commit 28325fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unittests/tests-spiffs/tests-spiffs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ static void tests_spiffs_write2(void)
223223
TEST_ASSERT(mp >= 0);
224224

225225
int res;
226-
for (int j = 0; j < 10; j++) {
226+
for (int j = 0; j < 5; j++) {
227227
int fd = vfs_open("/test-spiffs/test.txt", O_CREAT | O_RDWR, 0);
228228
TEST_ASSERT(fd >= 0);
229229

230-
for (int i = 0; i < 2000; i++) {
230+
for (int i = 0; i < 128; i++) {
231231
res = vfs_write(fd, buf, sizeof(buf));
232232
TEST_ASSERT_EQUAL_INT(sizeof(buf), res);
233233
}

0 commit comments

Comments
 (0)