Skip to content

Commit

Permalink
fix read timeout test
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulKa committed Jan 16, 2024
1 parent 66f1d34 commit 1ad27c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aht20/aht20_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"periph.io/x/conn/v3/i2c/i2ctest"
"periph.io/x/conn/v3/physic"
"testing"
"time"
)

const byteStatusInitialized = bitInitialized | 0x10
Expand Down Expand Up @@ -139,10 +138,10 @@ func TestDev_Sense_error(t *testing.T) {
},
{
name: "read timeout",
data: []byte{byteStatusInitialized, 0x75, 0x52, 0x05, 0x8E, 0x40, 0x7F},
data: []byte{bitInitialized | bitBusy, 0x75, 0x52, 0x05, 0x8E, 0x40, 0x16},
opts: Opts{
MeasurementReadTimeout: 1,
MeasurementWaitInterval: 10 * time.Millisecond,
MeasurementWaitInterval: -1,
ValidateData: true,
},
error: &ReadTimeoutError{1},
Expand Down

0 comments on commit 1ad27c2

Please sign in to comment.