File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,6 +307,8 @@ func TestEmulatorOpenAndTrigger(t *testing.T) {
307307 e , err := Open (dir , p6 .DefaultConfig ())
308308 require .NoError (t , err )
309309 t .Cleanup (func () { _ = e .Close () })
310+ // Keep the capture sink from consuming voices while this test inspects them.
311+ require .NoError (t , e .sink .Stop ())
310312
311313 assert .Equal (t , 2 , e .Loaded ())
312314 assert .Contains (t , e .Path (), dir )
@@ -337,6 +339,8 @@ func TestEmulatorPlayNote(t *testing.T) {
337339 e , err := Open (dir , p6 .DefaultConfig ())
338340 require .NoError (t , err )
339341 t .Cleanup (func () { _ = e .Close () })
342+ // Keep the capture sink from consuming voices while this test inspects them.
343+ require .NoError (t , e .sink .Stop ())
340344
341345 // The default selection (A1, id 0) is loaded, so keyboard notes pitch it.
342346 require .NoError (t , e .PlayNote (p6 .KeyboardCenterNote , 100 ))
You can’t perform that action at this time.
0 commit comments