Fixed an edge case durring disonnect when remember transmission
This commit is contained in:
@@ -40,6 +40,7 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
|
||||
|
||||
items[0].(adminItem).action()
|
||||
items[1].(adminItem).action()
|
||||
b.setTransmitting(true)
|
||||
items[2].(adminItem).action()
|
||||
reloaded := config.NewConfig(&configPath)
|
||||
if reloaded.GetAGCEnabled() {
|
||||
@@ -51,6 +52,9 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
|
||||
if !reloaded.GetRememberTransmissionState() {
|
||||
t.Fatal("settings action did not persist enabled transmission-state remembering")
|
||||
}
|
||||
if !reloaded.GetTransmissionActive() {
|
||||
t.Fatal("settings action did not capture the active transmission state")
|
||||
}
|
||||
|
||||
if got := b.adjustMicVolume(-0.1); got < 0.899 || got > 0.901 {
|
||||
t.Fatalf("adjusted microphone level = %v, want 0.9", got)
|
||||
|
||||
Reference in New Issue
Block a user