Commit 4ccdbf0a authored by Michael de Hoog's avatar Michael de Hoog

Fix tests

parent 7e740c8d
...@@ -98,8 +98,7 @@ func TestChannelManagerReturnsErrReorgWhenDrained(t *testing.T) { ...@@ -98,8 +98,7 @@ func TestChannelManagerReturnsErrReorgWhenDrained(t *testing.T) {
log := testlog.Logger(t, log.LvlCrit) log := testlog.Logger(t, log.LvlCrit)
m := NewChannelManager(log, metrics.NoopMetrics, m := NewChannelManager(log, metrics.NoopMetrics,
ChannelConfig{ ChannelConfig{
TargetFrameSize: 1, TargetFrameSize: 0,
TargetNumFrames: 1,
MaxFrameSize: 120_000, MaxFrameSize: 120_000,
ApproxComprRatio: 1.0, ApproxComprRatio: 1.0,
}) })
...@@ -333,8 +332,7 @@ func TestChannelManager_TxResend(t *testing.T) { ...@@ -333,8 +332,7 @@ func TestChannelManager_TxResend(t *testing.T) {
log := testlog.Logger(t, log.LvlError) log := testlog.Logger(t, log.LvlError)
m := NewChannelManager(log, metrics.NoopMetrics, m := NewChannelManager(log, metrics.NoopMetrics,
ChannelConfig{ ChannelConfig{
TargetFrameSize: 1, TargetFrameSize: 0,
TargetNumFrames: 1,
MaxFrameSize: 120_000, MaxFrameSize: 120_000,
ApproxComprRatio: 1.0, ApproxComprRatio: 1.0,
}) })
...@@ -375,7 +373,7 @@ func TestChannelManagerCloseBeforeFirstUse(t *testing.T) { ...@@ -375,7 +373,7 @@ func TestChannelManagerCloseBeforeFirstUse(t *testing.T) {
log := testlog.Logger(t, log.LvlCrit) log := testlog.Logger(t, log.LvlCrit)
m := NewChannelManager(log, metrics.NoopMetrics, m := NewChannelManager(log, metrics.NoopMetrics,
ChannelConfig{ ChannelConfig{
TargetFrameSize: 1, TargetFrameSize: 0,
MaxFrameSize: 100, MaxFrameSize: 100,
ApproxComprRatio: 1.0, ApproxComprRatio: 1.0,
ChannelTimeout: 1000, ChannelTimeout: 1000,
......
...@@ -90,7 +90,7 @@ var ( ...@@ -90,7 +90,7 @@ var (
Name: "compressor", Name: "compressor",
Usage: "The type of compressor. Valid options: " + Usage: "The type of compressor. Valid options: " +
flags.EnumString[CompressorKind](CompressorKinds), flags.EnumString[CompressorKind](CompressorKinds),
EnvVar: opservice.PrefixEnvVar(envVarPrefix, "COMPRESSOR"), EnvVar: opservice.PrefixEnvVar(EnvVarPrefix, "COMPRESSOR"),
Value: func() *CompressorKind { Value: func() *CompressorKind {
out := CompressorTarget out := CompressorTarget
return &out return &out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment