Fixed the menu, remember transmission should be there now.
This commit is contained in:
+5
-1
@@ -32,7 +32,7 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
|
||||
labels = append(labels, item.String())
|
||||
}
|
||||
joined := strings.Join(labels, "\n")
|
||||
for _, wanted := range []string{"Automatic gain control: on", "Noise suppression: off", "Microphone level: 100 percent"} {
|
||||
for _, wanted := range []string{"Automatic gain control: on", "Noise suppression: off", "Remember transmission state: off", "Microphone level: 100 percent"} {
|
||||
if !strings.Contains(joined, wanted) {
|
||||
t.Errorf("settings did not include %q:\n%s", wanted, joined)
|
||||
}
|
||||
@@ -40,6 +40,7 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
|
||||
|
||||
items[0].(adminItem).action()
|
||||
items[1].(adminItem).action()
|
||||
items[2].(adminItem).action()
|
||||
reloaded := config.NewConfig(&configPath)
|
||||
if reloaded.GetAGCEnabled() {
|
||||
t.Fatal("settings action did not persist disabled automatic gain control")
|
||||
@@ -47,6 +48,9 @@ func TestAudioSettingsExposeCurrentValuesAndPersistMicChanges(t *testing.T) {
|
||||
if !reloaded.GetNoiseSuppressionEnabled() {
|
||||
t.Fatal("settings action did not persist enabled noise suppression")
|
||||
}
|
||||
if !reloaded.GetRememberTransmissionState() {
|
||||
t.Fatal("settings action did not persist enabled transmission-state remembering")
|
||||
}
|
||||
|
||||
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