Skip to content

Commit d81c17d

Browse files
committed
Fix tests
1 parent 6c7ae0a commit d81c17d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rolling-shutter/keyperimpl/shutterservice/eventtrigger_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,7 +2213,7 @@ func TestLogValueRefDecodeRLP(t *testing.T) {
22132213
}{
22142214
{
22152215
name: "topic reference - offset 0, length 1",
2216-
encoded: []byte{0x00}, // RLP encoding of uint64(0)
2216+
encoded: []byte{0x80}, // RLP encoding of uint64(0)
22172217
expected: LogValueRef{
22182218
Offset: 0,
22192219
Length: 1,
@@ -2267,7 +2267,7 @@ func TestLogValueRefDecodeRLP(t *testing.T) {
22672267
},
22682268
{
22692269
name: "invalid - zero length",
2270-
encoded: []byte{0xc2, 0x04, 0x00}, // RLP encoding of [4, 0]
2270+
encoded: []byte{0xc2, 0x04, 0x80}, // RLP encoding of [4, 0]
22712271
wantErr: true,
22722272
errMsg: "log value reference length must be positive",
22732273
},

0 commit comments

Comments
 (0)