catchunks: simplify internal options handling
Change-Id: I537a281f6c996c2544c145ab9cc01a54272c8efa
diff --git a/tests/chunks/pipeline-interests-fixed.t.cpp b/tests/chunks/pipeline-interests-fixed.t.cpp
index 12610be..f4979a2 100644
--- a/tests/chunks/pipeline-interests-fixed.t.cpp
+++ b/tests/chunks/pipeline-interests-fixed.t.cpp
@@ -37,8 +37,11 @@
{
public:
PipelineInterestFixedFixture()
- : opt(makeOptions())
{
+ opt.interestLifetime = 1_s;
+ opt.maxRetriesOnTimeoutOrNack = 3;
+ opt.isQuiet = true;
+ opt.maxPipelineSize = 5;
createPipeline();
}
@@ -50,21 +53,8 @@
setPipeline(std::move(pline));
}
-private:
- static PipelineInterestsFixed::Options
- makeOptions()
- {
- PipelineInterestsFixed::Options options;
- options.isQuiet = true;
- options.isVerbose = false;
- options.interestLifetime = time::seconds(1);
- options.maxRetriesOnTimeoutOrNack = 3;
- options.maxPipelineSize = 5;
- return options;
- }
-
protected:
- PipelineInterestsFixed::Options opt;
+ Options opt;
PipelineInterestsFixed* pipeline;
};