From 6aab0616d3e5b6b358ebca491154d7e07f5edc36 Mon Sep 17 00:00:00 2001 From: snoutbug Date: Tue, 21 Nov 2023 21:03:05 +0100 Subject: [PATCH] Fix Error Handling in Test-Function --- multitouch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multitouch_test.go b/multitouch_test.go index 91fda8b..be6fd6a 100644 --- a/multitouch_test.go +++ b/multitouch_test.go @@ -121,7 +121,7 @@ func TestMultiTouchMoveToFailsOnClosedDevice(t *testing.T) { } err = contacts[0].TouchDownAt(1, 1) - if err != nil { + if err == nil { t.Fatalf("Expected error due to closed device, but no error was returned.") } }