Makes the logic a bit clearer and safer. This also sneakily redefines the 0 interval to also mean disabled, whereas it previously meant ... sometimes default to 1s, sometimes just spin.
This commit is contained in:
@@ -62,7 +62,7 @@ func TestProgressEmitter(t *testing.T) {
|
||||
c := createTmpWrapper(config.Configuration{})
|
||||
defer os.Remove(c.ConfigPath())
|
||||
c.SetOptions(config.OptionsConfiguration{
|
||||
ProgressUpdateIntervalS: 0,
|
||||
ProgressUpdateIntervalS: 60, // irrelevant, but must be positive
|
||||
})
|
||||
|
||||
p := NewProgressEmitter(c, evLogger)
|
||||
@@ -112,7 +112,7 @@ func TestSendDownloadProgressMessages(t *testing.T) {
|
||||
c := createTmpWrapper(config.Configuration{})
|
||||
defer os.Remove(c.ConfigPath())
|
||||
c.SetOptions(config.OptionsConfiguration{
|
||||
ProgressUpdateIntervalS: 0,
|
||||
ProgressUpdateIntervalS: 60, // irrelevant, but must be positive
|
||||
TempIndexMinBlocks: 10,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user