From 5304a22a22aa8b8fddfb5e6078c1b96215a78b7a Mon Sep 17 00:00:00 2001 From: Farshid Tavakolizadeh Date: Thu, 4 Jul 2024 22:28:25 +0200 Subject: [PATCH] Fix typo in function name --- tests/common.go | 2 +- tests/upgrade_test.go | 4 ++-- tests/wifi_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/common.go b/tests/common.go index 04ac88d..7b65f4f 100644 --- a/tests/common.go +++ b/tests/common.go @@ -44,7 +44,7 @@ func writeLogFile(t *testing.T, label string, b []byte) { ) } -func waitForOnOffHandingByAllClustersApp(t *testing.T, start time.Time) { +func waitForOnOffHandlingByAllClustersApp(t *testing.T, start time.Time) { // 0x6 is the Matter Cluster ID for on-off // Using cluster ID here because of a buffering issue in the log stream: // https://github.com/canonical/chip-tool-snap/pull/69#issuecomment-2207189962 diff --git a/tests/upgrade_test.go b/tests/upgrade_test.go index 3b9b0b1..a008e82 100644 --- a/tests/upgrade_test.go +++ b/tests/upgrade_test.go @@ -57,7 +57,7 @@ func TestUpgrade(t *testing.T) { stdout, _, _ := utils.Exec(t, "sudo chip-tool onoff on 110 1 2>&1") writeLogFile(t, "chip-tool-onoff", []byte(stdout)) - waitForOnOffHandingByAllClustersApp(t, start) + waitForOnOffHandlingByAllClustersApp(t, start) }) t.Run("Upgrade snap", func(t *testing.T) { @@ -77,7 +77,7 @@ func TestUpgrade(t *testing.T) { stdout, _, _ := utils.Exec(t, "sudo chip-tool onoff off 110 1 2>&1") writeLogFile(t, "chip-tool-onoff", []byte(stdout)) - waitForOnOffHandingByAllClustersApp(t, start) + waitForOnOffHandlingByAllClustersApp(t, start) }) } diff --git a/tests/wifi_test.go b/tests/wifi_test.go index ac72231..5b63acc 100644 --- a/tests/wifi_test.go +++ b/tests/wifi_test.go @@ -42,7 +42,7 @@ func TestAllClustersAppWiFi(t *testing.T) { stdout, _, _ := utils.Exec(t, "sudo chip-tool onoff toggle 110 1 2>&1") writeLogFile(t, "chip-tool-toggle", []byte(stdout)) - waitForOnOffHandingByAllClustersApp(t, start) + waitForOnOffHandlingByAllClustersApp(t, start) }) }