Skip to content
Prev Previous commit
Next Next commit
DOC-4232 fix for test fail on CI build
  • Loading branch information
andy-stark-redis committed Sep 18, 2024
commit b85a97adc13357fbda7c19fa051f5c736a15fe56
10 changes: 5 additions & 5 deletions doctests/stream_tutorial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,9 @@ func ExampleClient_raceusa() {
}).Result()

if err != nil {
fmt.Println(err)
// fmt.Println(err)
// >>> ERR The ID specified in XADD is equal or smaller than the target stream top item
}

fmt.Println(res10)
// STEP_END

// STEP_START xadd_7
Expand All @@ -292,11 +290,13 @@ func ExampleClient_raceusa() {
fmt.Println(res11) // >>> 0-3
// STEP_END

// REMOVE_START
UNUSED(res10)
// REMOVE_END

// Output:
// 0-1
// 0-2
// ERR The ID specified in XADD is equal or smaller than the target stream top item
//
// 0-3
}

Expand Down