press empty to release and defer close
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func TestKeyboardIntegration(t *testing.T) {
|
||||
kb := output.NewKeyboard()
|
||||
defer kb.Release()
|
||||
t.Cleanup(kb.Close)
|
||||
|
||||
t.Log("pressing 'a' for 5 seconds")
|
||||
kb.Press(output.A)
|
||||
@@ -19,5 +19,5 @@ func TestKeyboardIntegration(t *testing.T) {
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
t.Logf("releasing")
|
||||
kb.Release()
|
||||
kb.Press()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user