diff --git a/src/device/output/keyboard_test.go b/src/device/output/keyboard_test.go index 5a54281..d0d8d95 100644 --- a/src/device/output/keyboard_test.go +++ b/src/device/output/keyboard_test.go @@ -13,12 +13,14 @@ func TestKeyboardIntegration(t *testing.T) { kb := output.NewKeyboard() t.Cleanup(kb.Close) - t.Log("pressing 'a' for 5 seconds") - kb.Press(key.A) - for i := 0; i < 5; i++ { - t.Logf("\t%d...", 5-i) - time.Sleep(time.Second) - } - t.Logf("releasing") - kb.Press() + t.Run("hold d", func(t *testing.T) { + t.Log("pressing 'd' for 5 seconds") + kb.Press(key.D) + for i := 0; i < 5; i++ { + t.Logf("\t%d...", 5-i) + time.Sleep(time.Second) + } + t.Logf("releasing") + kb.Press() + }) }