forked from github/server
fix json test. our fault, not the fault of storage
This commit is contained in:
parent
4081480e4a
commit
8912a59ac4
|
@ -107,12 +107,14 @@ static void test_export_no_factions(CuTest * tc) {
|
|||
char buf[1024];
|
||||
stream out = { 0 };
|
||||
int err;
|
||||
size_t len;
|
||||
|
||||
mstream_init(&out);
|
||||
err = json_export(&out, EXPORT_FACTIONS);
|
||||
CuAssertIntEquals(tc, 0, err);
|
||||
out.api->rewind(out.handle);
|
||||
out.api->read(out.handle, buf, sizeof(buf));
|
||||
len = out.api->read(out.handle, buf, sizeof(buf));
|
||||
buf[len]=0;
|
||||
CuAssertStrEquals(tc, "{}", strip(buf));
|
||||
mstream_done(&out);
|
||||
}
|
||||
|
|
2
storage
2
storage
|
@ -1 +1 @@
|
|||
Subproject commit 746d96d405ddebcf6c882d5b198fd96df82abe11
|
||||
Subproject commit 6acf2b4fec360d7f681275ea3be77002fd2573c7
|
Loading…
Reference in New Issue