aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_test_lib.c')
-rw-r--r--src/fs/fs_test_lib.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c
index 4af4dae33..c379d91ad 100644
--- a/src/fs/fs_test_lib.c
+++ b/src/fs/fs_test_lib.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010 Christian Grothoff (and other contributing authors) 3 (C) 2010, 2011 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -637,12 +637,17 @@ GNUNET_FS_TEST_publish (struct GNUNET_FS_TestDaemon *daemon,
637 uint64_t off; 637 uint64_t off;
638 char buf[DBLOCK_SIZE]; 638 char buf[DBLOCK_SIZE];
639 size_t bsize; 639 size_t bsize;
640 640 struct GNUNET_FS_BlockOptions bo;
641
641 GNUNET_assert (daemon->publish_cont == NULL); 642 GNUNET_assert (daemon->publish_cont == NULL);
642 daemon->publish_cont = cont; 643 daemon->publish_cont = cont;
643 daemon->publish_cont_cls = cont_cls; 644 daemon->publish_cont_cls = cont_cls;
644 daemon->publish_seed = seed; 645 daemon->publish_seed = seed;
645 daemon->verbose = verbose; 646 daemon->verbose = verbose;
647 bo.expiration_time = GNUNET_TIME_relative_to_absolute (CONTENT_LIFETIME);
648 bo.anonymity_level = anonymity;
649 bo.content_priority = 42;
650 bo.replication_level = 1;
646 if (GNUNET_YES == do_index) 651 if (GNUNET_YES == do_index)
647 { 652 {
648 GNUNET_assert (daemon->publish_tmp_file == NULL); 653 GNUNET_assert (daemon->publish_tmp_file == NULL);
@@ -678,9 +683,7 @@ GNUNET_FS_TEST_publish (struct GNUNET_FS_TestDaemon *daemon,
678 daemon->publish_tmp_file, 683 daemon->publish_tmp_file,
679 NULL, NULL, 684 NULL, NULL,
680 do_index, 685 do_index,
681 anonymity, 686 &bo);
682 42 /* priority */,
683 GNUNET_TIME_relative_to_absolute (CONTENT_LIFETIME));
684 } 687 }
685 else 688 else
686 { 689 {
@@ -692,9 +695,7 @@ GNUNET_FS_TEST_publish (struct GNUNET_FS_TestDaemon *daemon,
692 NULL, 695 NULL,
693 NULL, 696 NULL,
694 do_index, 697 do_index,
695 anonymity, 698 &bo);
696 42 /* priority */,
697 GNUNET_TIME_relative_to_absolute (CONTENT_LIFETIME));
698 } 699 }
699 daemon->publish_context = GNUNET_FS_publish_start (daemon->fs, 700 daemon->publish_context = GNUNET_FS_publish_start (daemon->fs,
700 fi, 701 fi,