aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_download_persistence.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_download_persistence.c')
-rw-r--r--src/fs/test_fs_download_persistence.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fs/test_fs_download_persistence.c b/src/fs/test_fs_download_persistence.c
index 0ea7a5524..035cbb55e 100644
--- a/src/fs/test_fs_download_persistence.c
+++ b/src/fs/test_fs_download_persistence.c
@@ -359,6 +359,7 @@ run (void *cls,
359 struct GNUNET_FS_Uri *kuri; 359 struct GNUNET_FS_Uri *kuri;
360 struct GNUNET_FS_FileInformation *fi; 360 struct GNUNET_FS_FileInformation *fi;
361 size_t i; 361 size_t i;
362 struct GNUNET_FS_BlockOptions bo;
362 363
363 cfg = c; 364 cfg = c;
364 setup_peer (&p1, "test_fs_download_data.conf"); 365 setup_peer (&p1, "test_fs_download_data.conf");
@@ -374,6 +375,10 @@ run (void *cls,
374 buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); 375 buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256);
375 meta = GNUNET_CONTAINER_meta_data_create (); 376 meta = GNUNET_CONTAINER_meta_data_create ();
376 kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); 377 kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords);
378 bo.content_priority = 42;
379 bo.anonymity_level = 1;
380 bo.replication_level = 0;
381 bo.expiration_time = GNUNET_TIME_relative_to_absolute (LIFETIME);
377 fi = GNUNET_FS_file_information_create_from_data (fs, 382 fi = GNUNET_FS_file_information_create_from_data (fs,
378 "publish-context", 383 "publish-context",
379 FILESIZE, 384 FILESIZE,
@@ -381,9 +386,7 @@ run (void *cls,
381 kuri, 386 kuri,
382 meta, 387 meta,
383 GNUNET_NO, 388 GNUNET_NO,
384 1, 389 &bo);
385 42,
386 GNUNET_TIME_relative_to_absolute (LIFETIME));
387 GNUNET_FS_uri_destroy (kuri); 390 GNUNET_FS_uri_destroy (kuri);
388 GNUNET_CONTAINER_meta_data_destroy (meta); 391 GNUNET_CONTAINER_meta_data_destroy (meta);
389 GNUNET_assert (NULL != fi); 392 GNUNET_assert (NULL != fi);