Skip to content

Commit

Permalink
Assert based on cluster ID in the received request
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Jul 3, 2024
1 parent f5b9cb1 commit 0a1d256
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/wifi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ func TestAllClustersAppWiFi(t *testing.T) {
})

t.Run("Control", func(t *testing.T) {
// stdbuf --output=0 sets the output stream to unbuffered
stdout, _, _ := utils.Exec(t, "stdbuf --output=0 sudo chip-tool onoff toggle 110 1 2>&1")
stdout, _, _ := utils.Exec(t, "sudo chip-tool onoff toggle 110 1 2>&1")
writeLogFile(t, "chip-tool-toggle", []byte(stdout))

utils.WaitForLogMessage(t,
allClustersSnap, "Toggle ep1 on/off", start)
// 0x6 is the cluster ID for on-off
utils.WaitForLogMessage(t, allClustersSnap, "ClusterId = 0x6", start)
})

}

0 comments on commit 0a1d256

Please sign in to comment.